I have a few tables in my app that I want to dump the data and the indexes
associated with the tables. what's the good way to do that?
I tried to delete data from the table like this. The table seems to be
empty after the deletion, but the index remains and the storage usage has no
change (>90%).
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
Query query = new Query(classname);
for (Entity entity : datastore.prepare(query).asIterable()) {
datastore.delete(entity.getKey());
}
thanks,
--
AJ Chen, PhD
Chair, Semantic Web SIG, sdforum.org
http://web2express.org
twitter @web2express
Palo Alto, CA, USA
--
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.