entity-groups

When to use entity groups in GAE's Datastore

爷,独闯天下 提交于 2020-01-10 18:43:53
问题 Following up on my earlier question regarding GAE Datastore entity hierarchies, I'm still confused about when to use entity groups . Take this simple example: Every Company has one or more Employee entities An Employee cannot be moved to another Company , and users that deal with one Company can never see the Employee s of another Company This looks like a case where I could make Employee a child entity of Company , but what are the practical consequences? Does this improve scalability, hurt

When to use entity groups in GAE's Datastore

↘锁芯ラ 提交于 2019-11-30 12:18:04
Following up on my earlier question regarding GAE Datastore entity hierarchies , I'm still confused about when to use entity groups . Take this simple example: Every Company has one or more Employee entities An Employee cannot be moved to another Company , and users that deal with one Company can never see the Employee s of another Company This looks like a case where I could make Employee a child entity of Company , but what are the practical consequences? Does this improve scalability, hurt scalability, or have no impact? What are other advantages/disadvantages of using or not using an