Reputation: 1458
Thinking about using Google Datastore in a project since I will use mostly Google Cloud tools. My worries lie within the official limits stated by Google Cloud Datastore.
Maximum size for an entity: 1,048,572 bytes or roughly 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.
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.
My question being... does the size of nested child entities count against the parent entity total size... or not?
Upvotes: 0
Views: 147
Reputation: 16563
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.
Upvotes: 2