简体   繁体   English

子实体是否会计入Google数据存储区中父实体的总大小?

[英]Do children entities count towards the total size of the parent entity in Google Datastore?

Thinking about using Google Datastore in a project since I will use mostly Google Cloud tools. 由于我将主要使用Google Cloud工具,因此请考虑在项目中使用Google Datastore。 My worries lie within the official limits stated by Google Cloud Datastore . 我担心的是Google Cloud Datastore规定官方限制

Maximum size for an entity: 1,048,572 bytes or roughly 1MB. 实体的最大大小:1,048,572字节或大约1MB。

From my application's point of view, one entity itself would never reach that size anyway. 从我的应用程序的角度来看,一个实体本身永远不会达到该大小。 However, I would use the Google Datastore's concept of Ancestor paths in which you may hierarchically nest entities as children of a parent entity. 但是,我将使用Google数据存储区的“ 祖先路径”概念,在其中您可以将实体分层嵌套为父实体的子代。

Tee problem is, one kind of entities will have dozens of direct children (entities) within it. 发球区域问题是,一种实体内部将有数十个直接子代(实体)。 Therefore, that will most likely reach the 1MB size limit. 因此,这很有可能达到1MB的大小限制。

My question being... does the size of nested child entities count against the parent entity total size... or not? 我的问题是...嵌套子实体的大小是否相对于父实体的总大小...?

No, child entities are separate entities so they don't count towards the size of any parent entities. 不,子实体是单独的实体,因此它们不计入任何父实体的大小。

Child entities are related to parents through their keys, and the datastore backend will do thing differently for child-parent relationships, but that doesn't change the fact that each is its own entity with its own size limit. 子实体通过其键与父实体相关,并且数据存储后端在处理子母关系时会做不同的事情,但这并不能改变每个实体都是具有自己的大小限制的实体的事实。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 计算数据存储区Google App引擎中的实体 - Count entities in datastore Google app engine 查询数据存储实体的子代 - Query children of a Datastore entity Python Google App Engine:如何在数据存储区中找到特定实体的计数? - Python Google App Engine: How do you find the count number of a particular entity in the datastore? 为什么在GAE数据存储中计算X个实体的时间会随着实体总数的增加而增加? - Why does time to count X entities in GAE Datastore increase with total number of entities? 如何从客户端通过Google数据存储区中的引用集合定义获取数据存储区实体的长度(或计数) - How to get length of (or count) of datastore entities through a reference collection definition in google datastore from client side 如何更改 Google Cloud Datastore API 中的实体? - How do I mutate Entities in the Google Cloud Datastore API? 我如何修改在 google 数据存储区中创建的实体 - How do i modify entities created in google datastore 如何使用数据存储区API使用父实体密钥获取嵌套的子实体 - How to fetch nested child entities using parent entity key using datastore api 同一实体的数据存储区父级子级 - Datastore parent child of the same entity Google App Engine DataStore - 如何以有效的方式从 Java 中子表的键中获取 select 父实体? - Google App Engine DataStore - How to select parent entities from keys of a child table in Java in an efficient way?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM