开发者

GAE: About the Usage of High Replication Data

开发者 https://www.devze.com 2023-03-16 03:45 出处:网络
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 Stat

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 h开发者_如何学JAVAow can I reduce the former Usage?

Thank you.


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 ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号