No datastore stats?

19 views
Skip to first unread message

Peter Liu

unread,
Oct 15, 2009, 1:10:15 AM10/15/09
to Google App Engine
Do we need to "enable" the datastore stats?

I tried the sample code (java) in both dev and production, and the
globalStat is always null.

DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
Entity globalStat = datastore.prepare(new Query
("__Stat_Total__")).asSingleEntity();
//globalStat is null the next line will throw null pointer exception
Long totalBytes = (Long) globalStat.getProperty("bytes");
Long totalEntities = (Long) globalStat.getProperty("count");

I don't see any stats in admin dashboard either. Did I miss something?

Can someone post a working sample in java? Thanks!

Kenneth

unread,
Oct 15, 2009, 2:46:24 AM10/15/09
to Google App Engine
I'm seeing this problem too. If I go to the stats page in the admin
console I'm just seeing No statistics found. after the list of my
entities.

I've waited patiently for one day but nothing has appeared. :-)

I only have a small amount of data so I can't imagine I've gone over
the 100k limt.

Thanks.
Reply all
Reply to author
Forward
0 new messages