Closed kautilya-pro closed 6 years ago
You might want to read about strong and eventual consistency. Regular put is synchronous, but the db change may have not arrived in the database yet for reading.
@kautilya-pro: assuming that by table you mean kind, the query you describe is a global query. As this article on consistency in Cloud Datastore notes:
Global queries (those that do not execute against an entity group) are always eventually consistent.
when I'm putting a new entity in ndb table and counting the number of all entities in the table. I'm getting one number lesser than what actually should be. The put() is working asynchronously. Then, what's the difference between put() and put_async()?