google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Datastore not updated before reload page #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Perform a put() to the datastore
2.Reload the page immediately after
3.Last put not executed

What is the expected output? What do you see instead?
Datastore should have the new data, but it has not been updated.

What version of the product are you using? On what operating system?
v0.6, Windows 7

Please provide any additional information below.
The same code works well with the datastore put() with App Engine Launcher 
1.7.4.
Inserting a wait of a few seconds between the put() and reload solves the 
problem.

Original issue reported on code.google.com by forscale...@gmail.com on 12 Feb 2013 at 12:27

GoogleCodeExporter commented 9 years ago
devappserver2 defaults to time-based datastore consistency to emulate the 
eventual consistency of the production high-replication datastore (see 
https://developers.google.com/appengine/docs/python/datastore/queries#Data_Consi
stency for more info). You can pass the command line flag 
--datastore_consistency_policy=consistent to always see fresh results from 
queries, but you should still ensure that your app behaves correctly in the 
case that a global query returns stale results.

Original comment by sa...@google.com on 13 Feb 2013 at 5:20