[Python] NDB Update taking long time

50 views
Skip to first unread message

Saturnino Mateus

unread,
Jun 18, 2015, 4:05:56 PM6/18/15
to google-a...@googlegroups.com
Hello;

I have an entity with some attributes is a list of objects, but i noticed that when i update the object it takes about 1 day to update. Why this happens? What can i do?

Regards

Michael (Cloud Platform Support)

unread,
Jun 19, 2015, 1:41:53 PM6/19/15
to google-a...@googlegroups.com, s.nata...@gmail.com
Hi Saturnino!

If you mean you are experiencing a delay in Datastore consistency, I recommend including the flag --datastore_consistency_policy=consistent when deploying your application (within the Application Settings in the Google App Engine Launcher).

Cheers!

Jason Collins

unread,
Jun 19, 2015, 4:12:03 PM6/19/15
to google-a...@googlegroups.com, s.nata...@gmail.com
Hi Michael, the flag you are referencing is for the dev_appserver, which allows the simulation of eventually consistent query behavior on the local development environment.

On production, you always have to contend with eventual consistency when querying (exception: ancestor queries).

Saturnino, are you seeing that a key.get() is returning stale data, or a query result? If query result, there could be latency, but 1 day is a _huge_ amount of time and you shouldn't be seeing this.

Saturnino Mateus

unread,
Jun 19, 2015, 7:18:35 PM6/19/15
to google-a...@googlegroups.com
Hey guys,

I found this article: http://googleappengine.blogspot.com.br/2009/06/10-things-you-probably-didnt-know-about.html
what is happening with me is the item "8. The value for 'Stored Data' is updated once a day"

timh

unread,
Jun 20, 2015, 1:32:26 AM6/20/15
to google-a...@googlegroups.com
That is referring to the dashbord details on totals of data stored, not your actual data state.
Reply all
Reply to author
Forward
0 new messages