GAE:关于高复制数据的使用
我正在使用 Google App Engine 和高复制数据存储。
我今天检查了我的一个 GAE 应用程序的仪表板,发现计费状态中的高复制数据变为 52%,0.26 of 0.50 GBytes。
我的应用程序没有使用太多数据,因此我还检查了数据存储统计信息,实体总数约为 60,000 个,所有实体的大小仅为 42 MB,远低于 0.26 GB。
仪表板中的使用情况和数据存储统计信息中的使用情况有什么区别?以及如何减少前者的使用量?
谢谢。
I'm using Google App Engine and High Replication Datastore.
I checked the Dashboard of one of my GAE app today, I found that High Replication Data became 52%, 0.26 of 0.50 GBytes in the Billing Status.
I don't use so much data for the app, so I also checked Datastore Statistics and Total number of entities is about 60,000 and Size of all entities is only 42 MBytes, which is far from 0.26 GBytes.
What is the difference between the Usage in the Dashboard and in the Datastore Statistics? And how can I reduce the former Usage?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为数据存储区会为您的实体创建自动索引。此外,如果您有自定义索引,它们也需要存储。
您可以通过删除未使用的索引和不为查询不需要的属性建立索引(设置indexed=false)来减少这种情况。
但一般来说,您需要习惯这样一个想法:实体的存储与数据存储所需的总存储不同;)
Because the datastore creates automatic indexes for your entities. In addition if you have custom indexes, they will also need storage.
You can reduce this by removing unused indexes and by not indexing properties, which are not needed for queries (setting indexed=false).
In general however, you need to get used to the idea that the storage for your entities is not the same as total storage needed for the datastore ;)