你知道哪个是最安全 Queries Per Second在不引起写入争用的情况下对单个实体进行更新的速率?
正在阅读this关于分片的文档明确指出:
it is important to note that you can only expect to update any single entity or entity group about five times a second. That is an estimate and the actual update rate for an entity is dependent on several attributes of the entity, including how many properties it has, how large it is, and how many indexes need updating.
我有timeout problem即使每秒更新一次并在 this 中发表评论答案让我困惑:
You can still get write contention on individual entities if you're doing more than about 1QPS of modifications to them
我错过了什么吗?
如果我什至无法每秒更新一个实体而不引发超时错误,我的 GAE 应用程序如何扩展?
最佳答案
出现差异的原因是这不是硬性限制。如果您对实体组进行 1 QPS 更新,您可能根本不会注意到超时或延迟有任何显着增加。如果 QPS 为 5,您可能会看到超时率增加,并且延迟明显更高。除此之外,争用问题将会变得更糟。
一般来说,我认为 1 QPS 是围绕 1 QPS 构建的设计目标,以便为峰值提供合理的误差范围。
关于google-app-engine - 可持续的每秒查询 [QPS],不会产生超时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4758297/