开发者

Google datastore stats

I am querying the __Stat_Kind__ kind. It does not return me entities about kinds that currently exist in the datastore but it includes entities about kinds that I had deleted more than a week ago.

I am not so much concerned about it returning me the non-existent kinds - the doc does mention this scenario after all.

But I am concerned that it does not return me info about my current kinds. Is this a known issue or am I doing something wrong?


To folks on the app engine team:

Also, on the dev server neither __Stat_Kind__ nor __Stat_Total__ return any entities. Which means I need to deploy my app to appspot before I can test this behavior. It wou开发者_运维技巧ld be nice if the dev server did return some basic info.

Thanks, Keyur


Datastore stats generally update daily, but sometimes less frequently.

The kinds don't exist on the dev_appserver, because they're populated by a process that runs in production only. Fair point, though - feel free to open a bug for it.


Datastore statistics don't update immediately (they would be a performance drain if they updated on every write). How recently did you create the entities that aren't showing up in stats?

Also, you may want to make sure that the stats entity you are fetching is the most recent one (see here).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜