The 5 writes per second for an entity group

六月ゝ 毕业季﹏ 提交于 2019-12-06 00:46:41

问题


Suppose we have 5 entities: A,B,C,D,E with the following ancestor hierarchy:

      A
     / \
    B   C
   /     \
  D       E

I have two questions about this:

  1. Do we have 2 entity groups here (A,B,D) and (A,C,E) or just 1 entity group (A,B,C,D,E)?
  2. If we want to update entities D and E, can we update each of them 5 times per second or should the combined writes for D,E not exceed 5?

回答1:


There is only one entity without a parent here - that is, A. It is therefore a root entity of the sole entity group that contains A, B, C, D and E. Entity group is simply a distinct tree of entities linked by parent-child relationship.

As for write limit, it applies to whole entity group. Hence you cannot have more than five updates per second to either of your entities (A, B, C, D or E) since they all belong to the same group.

You can find more info on avoid the so-called datastore contention (updating entities too often) in this article.



来源:https://stackoverflow.com/questions/7484588/the-5-writes-per-second-for-an-entity-group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!