Google App Engine's Datastore Admin is Terribly Inefficient
marram.posterous.com
Google App Engine's Datastore Admin is Terribly Inefficient
1–10 of 18 posts
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#2And with regards to your script, you can't just delete 3k keys in one request. If you want I'll send you the script I've adapted for jobs that make large changes to the datastore.
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#3I'm pretty sure this uses the map reduce API which has a lot of overhead in the datastore. In principle map reduce is nice because it could make very large jobs fast. But since Google engineers don't pay for anything, they optimized for time, not cost. And with regards to your script, you can't just delete 3k keys in one request. If you want I'll send you the script I've adapted for jobs that make large changes to th…
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#4Re: Google App Engine's Datastore Admin is Terribly Inefficient
#5Re: Google App Engine's Datastore Admin is Terribly Inefficient
#6I'm pretty sure this uses the map reduce API which has a lot of overhead in the datastore. In principle map reduce is nice because it could make very large jobs fast. But since Google engineers don't pay for anything, they optimized for time, not cost. And with regards to your script, you can't just delete 3k keys in one request. If you want I'll send you the script I've adapted for jobs that make large changes to th…
I can't remember the exact number but it was about 10 times less than deleting via admin interface and finish in 5 minutes rather than 3 hours.
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#71 entity delete = 2 Writes + 2 Writes per indexed property value + 1 Write per composite index value
All from this page: http://code.google.com/appengine/docs/billing.html#Billable_... And more about why it is so: http://code.google.com/appengine/articles/life_of_write.html
Well, the OP is just another coder who can't read docs, but can write a blog.
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#8If you create your own bulk delete method, you will find that it takes exactly as many write ops as the admin console tool.
You probably have defined more indexes on your entities than you need to - you will likely be able to make your app cheaper by removing unnecessary indexes. Managing indexes carefully is a critical part of making apps affordable on GAE.
Re: Google App Engine's Datastore Admin is Terribly Inefficient
#9A GAE datastore delete takes multiple operations because it also updates indexes: 1 entity delete = 2 Writes + 2 Writes per indexed property value + 1 Write per composite index value All from this page: http://code.google.com/appengine/docs/billing.html#Billable_... And more about why it is so: http://code.google.com/appengine/articles/life_of_write.html Well, the OP is just another coder who can't read docs, but can…