每秒写入5个实体组 [英] The 5 writes per second for an entity group

查看:84
本文介绍了每秒写入5个实体组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我们有5个实体:A,B,C,D,E,它们具有以下祖先层次:

  A 
/ \
BC
/ \
DE

我有两个问题:


  1. 我们在这里有两个实体组(A,B,D)和(A,C ,E)还是1个实体
    组(A,B,C,D,E)?

  2. 如果我们想更新实体D和E,我们可以
    每秒更新5次,或者如果D,E的合并写入
    不超过5?


解决方案

因此它是包含A,B,C,D和E的唯一实体组的一个根实体。实体组仅仅是一个由父子关系链接的实体的不同树。



至于写入限制,它适用于整个实体组。因此,每个实体(A,B,C,D或E)每秒不能超过5次更新,因为它们都属于同一个组。

您可以在数据存储争用(更新实体的频率)的更多信息。 rel =nofollow noreferrer>本文


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?

解决方案

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.

这篇关于每秒写入5个实体组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆