I assume this is because the previous page updates the object, which then accesses the later page using a non-parent query. A non-ancestral query provides final consistency, not strong consistency, so the problem is not that the page is not refreshing, but that it shows what the data looked like before the update was completed. When you update or add a call to the time.sleep () function, you can provide enough time for the data store to catch up, especially during testing. However, in production, your dream may not be long enough in all cases, and the same applies to refreshing the page.
If you test your application and find out that you are using a query that is not related to the ancestor, and therefore your problem is really possible - consistency and strong consistency, a Google search will show you that many pages discuss this topic; here's one: https://cloud.google.com/developers/articles/balancing-strong-and-eventual-consistency-with-google-cloud-datastore#ftnt_ref1 .
The simplest solution is to create an entity group and use the ancestor's query, although this is due to a possible performance hit and the limitation of one update per second per entity group.
source share