hi,
im experiencing some unexpected results with the datastore. ill try to simplify
my problem:
im using the python sdk.
lets say i have a model with a uuid as the unique identifier which is a
uuid.uuid1()
with a script on my machine i push entities to my app on GAE which creates or
updates the entity based on what i push.
it can happen that some entities are pushed twice in a short period of time
(less than a second) but my problem is that sometimes it creates it twice.
my model looks something like this:
class MyEntity(db.Model):
uuid = db.StringProperty()
....
@classmethod
def by_uuid(cls, uuid):
myentity = cls.all().filter('uuid =', uuid).fetch(5)
return myentity
in the post function of my handler i first check if the entity already exists
with the by_uuid() function so i update the properties otherwise i create a new
one.
is it possible that because of more than one post to the same url (the same
uuid) the datastore is not synched between all datacenters and by hitting
another machine this one does not know about the entity yet?
thx
--
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.