python - Is NDB query() going through the cache? -


is ndb query() going through cache?

ndb docs mention use cache automatically. get_by_id or query statements e.g.:

product.query().order(product.name).fetch() 

in many pages i’m displaying product list that’s why want come cache.

alternative way query product list , store in memcache myself, in case product updates not end in ‘manual’ cache. or option store product id’s in cache myself , retrieve them via memcache/datastore. require get_by_id accepts multiple id’s , returns list..

i had same problem. since query not cached (at least, between diferent contexts, or understood in docs) resolved memcache querys , keep synced add/update/delete data.

here solution problem. hope helps.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -