gpt4 book ai didi

java - 每个单个实体组每秒写入 1 次的限制?

转载 作者:行者123 更新时间:2023-12-02 12:35:51 24 4
gpt4 key购买 nike

我已经搜索了足够多的内容,但还没有找到答案。所以我才来问。

根据Google cloud datastore doc

There is a write throughput limit of about one transaction per second within a single entity group.

现在假设我有一个实体用户和另一个实体汽车。他们有一个共同的 parent 。所以 User+Car+ir_Parent 是一个实体组。对吗?

假设在数据存储区中,用户和汽车各有一百万个实例/行。

如果我触发事务查询来更新数据存储区中的实例/行。

我的困惑是有多少实体组实例因应用 Google DataStore 的写入限制而被锁定?

A.用户+汽车(综合两千万实例)

B.只有 1 个用户 + 汽车实例? (1 个用户行和 1 个汽车行)

In database parlance, User is an Entity Kind/Table. So does the entire Table/Kind gets locked for 1 write operation or just one instance/Row gets locked for 1 write operation?

如果 A 是这种情况,这是否意味着 1 次写入,所有 2000 万行 User+Car 实体将被锁定?太疯狂了。如果我必须更新所有 2000 万行怎么办?如果写入操作仅更新 1 行,那么 2000 万行是否需要 2000 万秒才能避免任何争用?

最佳答案

an entity group is a set of entities connected through ancestry to a common root element. The organization of data into entity groups can limit what transactions can be performed:

请参阅“Python”文档 here 。令人惊讶的是它不在您的 Java 文档链接中

关于java - 每个单个实体组每秒写入 1 次的限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45152541/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com