Datastore Latency issues?

38 views
Skip to first unread message

Prateek Malhotra

unread,
Sep 14, 2009, 12:47:40 AM9/14/09
to Google App Engine
I am unable to do even a single get() command in my application. I
don't think I've reached any quota, and I am even paying now so I
don't think i have any short-term limitations, here is my code (I
already tried switching .fetch(100) to .get() and still it fails on
the first get attempt before deleting).


class DeleteKeywords(webapp.RequestHandler):
def get(self):
try:
trackers = Tracking.all().filter('delete_track',True)
for x in trackers:
keys = db.Query(keys_only=True).ancestor(x).filter
(datastore_types._KEY_SPECIAL_PROPERTY + ' >', x.key()).fetch(100)
while keys:
db.delete(keys)
keys = db.Query(keys_only=True).ancestor(x).filter
(datastore_types._KEY_SPECIAL_PROPERTY + ' >', x.key()).fetch(100)
x.delete()
except (DeadlineExceededError, Timeout):
queue = taskqueue.Queue(name='delete-tasks')
queue.add(taskqueue.Task(url='/tasks/delete_tracks',
method='GET'))
self.response.out.write("Ran out of time, need to delete
more!")

This piece of code was running fine earlier today. What's even more
odd is that the error stopped showing up in my logs around 9:43pm, so
maybe something broke at that time?

Prateek Malhotra

unread,
Sep 14, 2009, 11:46:10 AM9/14/09
to Google App Engine
Does anybody have any idea on what could be wrong? This is EXTREMELY
aggravating as I still have over 700MB of data that needs to be
removed and I have resorted to doing it manually since i can't even
query this Model type anymore... though other queries seem to work
fine and I can query using the data viewer on the admin panel just
fine

-Prateek

Prateek Malhotra

unread,
Sep 14, 2009, 11:52:19 AM9/14/09
to Google App Engine
A better question... why is my name "My dick is bigger than your
dick"? Did my account get hacked!?



On Sep 14, 11:46 am, My dick is bigger than your dick

Prateek Malhotra

unread,
Sep 14, 2009, 12:03:37 PM9/14/09
to Google App Engine
I was mistaken, there was only 70MB left to delete, and I finally
finished, although I am still testing my code to delete the parent
properly but it hasn't been able to get past that fetch(). There
should be NO MORE descendants so why is this continuing to fail???

This must be a bug in the AppEngine!

-Prateek

Brian

unread,
Oct 30, 2012, 10:22:36 AM10/30/12
to google-a...@googlegroups.com
Did you ever get a solution to this problem you posted over 3 years ago!? I'm having a similar issue: 
Reply all
Reply to author
Forward
0 new messages