Hi,

   I'm experiencing what appears to be a problem with write
propogation - after writing some objects, I am not able to read them.

I'm using the Relational Index pattern outlined in one of Brett's IO
talks, and am able to retrieve the Index entities - i.e.

indexKeys = db.GqlQuery(
    "SELECT __key__ FROM MyIndex "
    "WHERE myList = :1", value)

keys = [k.parent() for k in indexKeys]
logging.info("Keys: %s" % keys)

yields the log output:

[datastore_types.Key.from_path(u'MyObject', u'ABC', _app=u'myapp'),
datastore_types.Key.from_path(u'MyObject', u'DEF', _app=u'myapp'),
datastore_types.Key.from_path(u'MyObject', u'GHI', _app=u'myapp')]

however

myObjs = db.get(keys)
logging.info("objects:%s" % myObjs)

yields the log output:

objects:[None, None, None]

Now I realise that it is not compulsory for the parent keys to
actually exist in the db, but in my case those keys were obtained from
objects that had been written to the datastore.

Further, I have this behaviour being triggered from the task queue, so
the task goes back in the queue a number of times, over perhaps 5
minutes, but eventually succeeds.  This would seem to suggest that the
writes are taking a very long time to be made available to read.

Should I expect to be able to read an object I have written?  I had
assumed this was a guaranteed situation.

Thanks,

Colin


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to