I'm using google datastore to get data of a user:
This is what i'm trying to do:
- When data is updated, its
updated_at [indexed] property gets set to current timestamp.
- I query data on
updated_at in ascending order and store cursor returned for later use.
- Now user has updated the last entity (which cursor points currently) and no other data is added or updated.
- Now i'm expecting that last entity to be returned in next query (using that old cursor) because it was updated and now has a new
updated_at timestamp.
- But that is not the case, i do not see that (my result is empty list) And now i have lost that update completely because query will return all the other object except that last entity that was updated.
- I'm is doing something wrong or this is the way it is?
- If this is natural behaviour then what is preferred way to get that last entity that was updated?
I'm using google datastore to get data of a user:
This is what i'm trying to do:
updated_at [indexed]property gets set to current timestamp.updated_atin ascending order and store cursor returned for later use.updated_attimestamp.