google app engine - Does NDB auto-batching work with caching disabled? -
the ndb docs mention auto-batching several times there isn't section describes when , how works. i'd know if auto-batching dependant on ndb's default enabled caching.
i wrote app long before py27 , ndb available. has custom caching incorporated uses memcache , cross-request instance caching. plan migrate ndb take advantage of cleaner async capabilities disable ndb internal caching. i'd know if optimize app auto-batching still work? or since i'm disabling caching going interfere batching mechanism?
thanks!
don't worry disabling internal caching, auto-batching work independently.
be sure use annotation @ndb.toplevel. when running async operations, want make sure run before main thread finalizes, , @ndb.toplevel annotation take care of that.
https://developers.google.com/appengine/docs/python/ndb/async
Comments
Post a Comment