Is it best to query by keys_only=True then get_multi or just full query?
问题 I am using NDB with python 2.7 with threadsafe mode turned on. I understand that querying for entities with NDB does not use local cache or memcache but goes straight to the datastore unlike getting by key name. (The rest of the question might be redundant if this premise is not correct.) Therefore would a good paradigm be to only query with keys_only=True and then do a get_multi to obtain the full entities? The benefits would be that keys_only=True queries are much faster than keys_only