You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
keys_only=True queries count as "small datastore ops".
Under certain scenarios, many of the entities returned from a query may already
be in cache - in particular memcache.
It would be great if the NDB framework could automatically convert a query to
keys_only=True and then a get_multi() using the returned keys so that the
entities would be returned from the caches (of course, only if present).
For queries that return frequently accessed entities, this could end up being a
significant cost (and performance?) savings and could all be provided under the
hood by NDB.
The API might be as simple as:
Entity.query(use_cached_entities=True)
Of course, the following would raise some kind of exception because it's
inconsistent:
Entity.query(use_cached_entities=True, keys_only=False)
Original issue reported on code.google.com by jcoll...@vendasta.com on 21 Dec 2011 at 4:13
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
jcoll...@vendasta.com
on 21 Dec 2011 at 4:13The text was updated successfully, but these errors were encountered: