Re: [appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-04 Thread John Goche
Thanks Ikai for your help, I was indeed running a global query and not reading by key. This was in the dev app server which AFAIK reproduces the behavior of the datastore. I would like to know, if you don't mind me asking, suppose I am not reading by key. Once a query becomes consistent, that

[appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-03 Thread John Goche
Hello, I am having the following problem. I am now using the low-level google datastore API rather than JDO, that way I should be in a better position to see exactly what is happening in my code. I am writing an entity to the datastore and shortly thereafter reading it from the datastore using

Re: [appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-03 Thread Ikai Lan (Google)
Can you post the code? Are you reading by key? If you are using a query, you might be exposed to the eventually consistent nature of global queries in the datastore. Or is this only in the dev appserver? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Fri, Feb 3,

Re: [appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-03 Thread Matthew Jaggard
I hope this is a stupid question but you're not setting the read consistency to eventual are you? On 4 Feb 2012 01:29, Ikai Lan (Google) ika...@google.com wrote: Can you post the code? Are you reading by key? If you are using a query, you might be exposed to the eventually consistent nature of