【发布时间】:2013-02-03 14:41:05
【问题描述】:
对于 google 数据存储中的 100k+ 个实体,ndb.query().count() 将在截止日期前取消,即使有索引。我尝试过使用produce_cursors 选项,但只有iter() 或fetch_page() 会返回游标,而count() 不会。
如何计算大型实体?
【问题讨论】:
-
我在任务队列中遇到了同样的问题。问题不是前端请求的 60 秒
DeadlineExceededError,而是查询本身的 60 秒(ish?)截止日期,_ToDatastoreError(err)... Timeout: The datastore operation timed out, or the data was temporarily unavailable.好吧,我猜这是 OP 的问题。
标签: python google-app-engine app-engine-ndb bigtable