V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
iwinux
V2EX  ›  Google App Engine

关于 datastore 结果集的 1000 上限

  •  
  •   iwinux · 2010-07-18 19:56:23 +08:00 · 4367 次点击
    这是一个创建于 5032 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Hi,
    Livid 在 http://picky.olivida.com/google-app-engine-1.3.1 这里提到 GAE SDK 1.3.1 里“Datastore 结果集 1000 的限制取消”,但是我看了 SDK 的 Release Notes (http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes),好像没有提到这一点?倒是增加了 Datastore Query Cursors 这一接口,但原先的1000限制仍没有取消……

    -iwinux
    2 条回复    1970-01-01 08:00:00 +08:00
    iwinux
        1
    iwinux  
    OP
       2010-07-18 19:57:20 +08:00
    BTW: 链接识别有点小问题...正确的链接是 http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
    kuber
        2
    kuber  
       2010-07-19 14:57:25 +08:00
    其实是用cursor 来绕过1000的限制
    大数据量下用cursor 应该是一种模式了, 参见这篇blog : http://www.w2blog.net/view/448.html
    文章里面的很多引文是重点
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5366 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:29 · PVG 17:29 · LAX 02:29 · JFK 05:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.