[英]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.