在appengine上查询响应大小限制? [英] Query response size limit on appengine?
问题描述
Appengine文档提到对实体大小和批量获取请求(db.get())的1Mb限制:
http://code.google.com/appengine/docs/python/datastore/overview.html
Appengine docs mention a 1Mb limit on both entity size and batch get requests (db.get()): http://code.google.com/appengine/docs/python/datastore/overview.html
对于单个fetch()调用,查询返回的所有实体的总大小是否也有限制?
Is there also a limit on the total size of all entities returned by a query for a single fetch() call?
示例查询:
db.Model.all().fetch(1000)
更新:从1.4.0开始批量取消限制已被移除!
Update: As of 1.4.0 batch get limits have been removed!
- 尺寸和数量限制数据存储批处理get / put / delete操作已被
删除。单个实体仍然限制为1 MB,但是您的应用程序
可能为
批次,因为整个
数据存储区最后期限允许,所以多个实体一起进行get / put / delete调用。
推荐答案
Theres 对于查询可以返回的实体的数量不再是限制,而是相同的实体大小限制适用于实际检索/迭代实体时。然而,这只会在一个单一的实体上;它不是查询返回的所有实体的总大小的限制。
Theres no longer a limit on the number of entities that can be returned by a query, but the same entity size limit applies when you are actually retrieving / iterating over the entities. This will only be on a single entity at a time though; it is not a limit on the total size of all entities returned by the query.
底线:只要你没有一个大于1Mb的实体,你应该可以查询。
Bottom line: as long as you don't have a single entity that is > 1Mb you should be OK with queries.
这篇关于在appengine上查询响应大小限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!