I’m building an client/server-app where I want to sync data. I’m thinking about including the largest key from the local client database in the query so the server can fetch all entities added after that entity (with key > largest_local_key).
- Can I be sure that the Google App Engine always increase the ID of new entities?
- Is that a good way to implement synchronization?
No, IDs do not increase monotonically.
Consider synchronizing based on a create/update timestamp.