Search code examples
google-app-enginedjango-nonrel

How can I use query cursors in Django nonrel on Google App Engine Python?


How can I use a query cursor with Django-Nonrel? If there is no way currently, it would be appreciated to tell me where to look at in Django-Nonrel. http://code.google.com/appengine/docs/python/datastore/queries.html#Query_Cursors

I'm using Paginator from Django, but it's apparently inefficient with large data.
Thanks


Solution

  • djangoappengine supports cursors:

    from djangoappengine.db.utils import get_cursor, set_cursor
    

    https://bitbucket.org/wkornewald/djangoappengine/src/9689b94680ff/db/utils.py