Morten Bek Ditlevsen writes: > Thanks for your answers - I'm just having a bit of a hard time figuring out > which data store requests happen automatically. > > I wondered because I had an error in the datastore: > > File "/base/data/home/apps/grindrservr/26.334331202299577521/main.py", > line 413, in query > if result in meStatus.blocks: > File "/base/python_lib/versions/1/google/appengine/api/datastore_types.py", > line 472, in __cmp__ > for elem in other.__reference.path().element_list(): > > The 'blocks' property is just like the 'favorites' described in my previous > mail - and 'result' is a value iterated over the results from a 'keys only' > query. > > So I guess what I don't understand is why the datastore is in play here. I > know that my results is probably an iterator, but why is this necessary when > you just query for keys? > That's what caused be to think that the error might be related to the > 'blocks' list of keys...
First of all, take my answer with a bit of salt since I'm new here too :) I think the datastore_types.py is not open source (or I can't find it in http://code.google.com/p/googleappengine) but since path().element_list() returns the parents/childs for an entity, that line should just be doing that for 'other', so maybe it's just unmarshalling the results or something, I don't think it's fetching a whole entity. Why don't you paste the full error trace so we can help you better? -- Federico Builes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
