A query within appengine is not consistent unless your data is structured to be strongly consistent. If it is not, then you will will see inconsistent results as per what you are describing: See the docs for further info, or look around on stackoverflow as there are many posts that outline this exact issue: https://developers.google.com/appengine/docs/python/datastore/structuring_for_strong_consistency
To resolve this issue, retrieve the data that you wish to display with a get(). eg: your_entity.key.get(): https://developers.google.com/appengine/docs/python/ndb/entities