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!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---