如何在 Google App Engine Python 上的 Django nonrel 中使用查询游标?

Posted

技术标签:

【中文标题】如何在 Google App Engine Python 上的 Django nonrel 中使用查询游标?【英文标题】:How can I use query cursors in Django nonrel on Google App Engine Python? 【发布时间】:2011-08-30 14:39:31 【问题描述】:

如何在 Django-Nonrel 中使用查询游标?如果目前没有办法,请告诉我在 Django-Nonrel 中查看的位置。 http://code.google.com/appengine/docs/python/datastore/queries.html#Query_Cursors

我正在使用来自 Django 的 Paginator,但它在处理大数据时显然效率低下。 谢谢

【问题讨论】:

【参考方案1】:

djangoappengine 支持游标:

from djangoappengine.db.utils import get_cursor, set_cursor

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

【讨论】:

谢谢德鲁!我稍后会试试。

以上是关于如何在 Google App Engine Python 上的 Django nonrel 中使用查询游标?的主要内容,如果未能解决你的问题,请参考以下文章

如何在 Google Cloud App Engine 上使用 PubSub 创建订阅者,该订阅者通过 Publisher 从 Google Cloud App Engine Flex 收听消息?

如何在 Google App Engine app.yaml 中处理尾部斜线

如何在 Google Cloud Functions 和 Google App Engine 之间进行选择?

如何在 Google App Engine 中创建版本号

如何在 Google App Engine 中执行全文搜索?

如何在 Django/Google App Engine 中制作日志颜色?