The Google AppEngine NDB Documentation for map() states that:
"All query options keyword arguments are supported."
However, I have tried to use produces_cursors=True on map() and I'm not getting a cursor back.
map(callback, pass_batch_into_callback=None, merge_future=None, **q_options)
I'd like to use map() as I can set the callback to a tasklet.
https://developers.google.com/appengine/docs/python/ndb/queryclass#kwdargs_options
Edit - Providing code sample:
@ndb.tasklet
def callback(user):
statistics = yield ndb.Key(Statistics, user.key.id()).get_async()
raise ndb.Return(user, statistics)
result = User.query().map(callback, produces_cursors=True)
tasklets.MultiFutureonly returns a list (code.google.com/p/appengine-ndb-experiment/source/browse/ndb/…) andmap_querydoesn't keep any of the cursor information around. - bossylobster