Google App Engine数据存储的ListProperty的最大大小/限制是多少? [英] What is maximum size/limitation of ListProperty for Google App Engine datastore?

查看:88
本文介绍了Google App Engine数据存储的ListProperty的最大大小/限制是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我读过文档但找不到解决方案我想创建ListProperty(long)以保留长度为30或更多的值。我想使用这个字段作为过滤器 - 我可以使用它类似于StringListProperty?



什么是ListProperty的大小限制(长)?

解决方案

@marcadian有一个相当不错的答案。对于ListProperty没有特别的限制。



您需要查看实体的数据存储限制:
https://developers.google.com/appengine/docs/python/datastore/#Python_Quotas_and_limits



两个最明显的限制是1MB的最大实体大小和20000个索引条目。

根据列表中的内容,它可能变化。您可以在1MB的限制内容纳130k 8字节的长度,但是如果它们被编入索引,那么由于索引限制,您将在20k条目处遇到障碍。



最糟糕的是,这些限制是在整个实体的大小上,所以如果你在一个实体中有两个列表,一个列表的大小可能会受到另一个列表中的内容的限制。


I am using GAE long time but can not find what is maximum length of ListProperty.

I was read documentation but not found solution I want to create ListProperty(long) to keep about 30 values of long or more. I want use this field as filter - can I use it similar to StringListProperty?

What is size limits of ListProperty(long)?

解决方案

@marcadian has a pretty good answer. There's no limit specifically on a ListProperty.

You do need to look at datastore limits on entities though: https://developers.google.com/appengine/docs/python/datastore/#Python_Quotas_and_limits

The two most obvious limits are the 1MB maximum entity size and 20000 index entries.

Depending on what's inside your list, it may vary. You can fit 130k 8-byte long's within that 1MB limit, but if they're indexed, you'll hit a barrier at 20k entries because of the index limit.

The worst bit is that these limits are on the total entity size, so if you have two lists in an entity, the size of one list could be limited by the what's in the other list.

这篇关于Google App Engine数据存储的ListProperty的最大大小/限制是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆