您在App Engine中可以拥有的实体种类数量是否有任何限制?
低级数据存储区ShardedCounter.java示例为每个计数器名称创建一个新的实体种类 ,而JDO示例将每个计数器存储在同一个实体种类中。 我喜欢前者的优势,但不知道它是否可以扩展到数百万的计数器名称?
Is there any limit on the number of Entity Kinds you can have in App Engine?
The low level datastore ShardedCounter.java example creates a new Entity Kind for each counter name whereas the JDO example stores each counter in the same Entity Kind. I like the advantage of the former, but don't know whether it scales to millions of counter names?
最满意答案
数据存储区基本上用作巨型HashMap<Key-Entity> ,因为HashMap可以放置无限数量的密钥,因为一个密钥是appId, Kind和实体ID或名称的混合,您也可以使用无限数量的密钥。
The datastore basically works as giant HashMap<Key-Entity>, as the HashMap you can put unlimited numbers of key, since one key is a mix of your appId, Kind, and entity Id or name you can use unlimited number of kinds too.
更多推荐
发布评论