我正在 300 个用户实体中进行地理查询,结果范围为 10。
我已经查询了120次了。对于每个查询,我得到 10 个用户实体对象。
此后,我的应用程序引擎读取操作达到 52%(26000 次操作)。
我的用户实体有 12 个单值属性和 3 个多值属性(列表类型)。
用户实体有 2 个单值属性索引和 2 个列表类型属性索引。
任何人都可以帮助我了解谷歌的应用程序引擎如何计算数据存储区读取操作吗?
最佳答案
首先,使用 appstats。它将向您显示您的应用中的费用来自何处:
https://developers.google.com/appengine/docs/java/tools/appstats
To keep your application fast, you need to know:
Is your application making unnecessay RPC calls? Should it cache data instead of making repeated RPC calls to get the same data? Will your application perform better if multiple requests are executed in parallel rather than serially? The Appstats library helps you answer these questions and verify that your application is using RPC calls in the most efficient way by allowing you to profile your RPC calls. Appstats allows you to trace all RPC calls for a given request and reports on the time and cost of each call.
一旦您了解成本来自何处,您就可以进行优化。
如果您只是想知道价格是多少,可以在这里:
关于java - 任何人都可以解释如何了解 App Engine 中的数据存储读取成本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12816879/