What's the max length of a ListProperty?

懵懂的女人 提交于 2019-11-30 14:00:22

问题


How many items can be stored in a ListProperty? Is there a limit?


回答1:


Entities are limited to 1MB in size (when encoded as a Protocol Buffer), so this provides a practical limit on the size of a list. Further, if the list is indexed, you're limited to 5000 entries before you get an exception because your entity has too many index rows.




回答2:


In my experience you will get MemoryError exceptions deserializing ListProperties before you hit a hard limit. That used to happen to me with 5,000 to 10,000 Key entities in the list.

Also, entities are limited to 5,000 indexed properties so 5,000 is a good maximum. (I feel like I used to have more sometimes but I don't remember exactly now.)



来源:https://stackoverflow.com/questions/1914740/whats-the-max-length-of-a-listproperty

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!