V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
iwinux

关于 datastore 结果集的 1000 上限

  •  
  •   iwinux · Jul 18, 2010 · 5226 views
    This topic created in 5776 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    iwinux
        1
    iwinux  
    OP
       Jul 18, 2010
    BTW: 链接识别有点小问题...正确的链接是 http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes
    kuber
        2
    kuber  
       Jul 19, 2010
    其实是用cursor 来绕过1000的限制
    大数据量下用cursor 应该是一种模式了, 参见这篇blog : http://www.w2blog.net/view/448.html
    文章里面的很多引文是重点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3056 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 15:00 · PVG 23:00 · LAX 08:00 · JFK 11:00
    ♥ Do have faith in what you're doing.