...and consider starring this issue:
http://code.google.com/p/googleappengine/issues/detail?id=1030
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to goo
Check this cookbook :
http://appengine-cookbook.appspot.com/recipe/efficient-use-of-get_or_insert/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tylgELEgtSZWNpcGVJbmRleCI8YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNDAsSBlJlY2lwZSI9YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5
You can view the source of get_or_insert and see that it only returns
the entity:
@classmethod
def get_or_insert(cls, key_name, **kwds):
def txn():
entity = cls.get_by_key_name(key_name, parent=kwds.get
('parent'))
if entity is None:
entity = cls(key_name=key_name, **k