Reputation: 2773
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).
Upvotes: 1
Views: 139
Reputation: 12838
No, IDs do not increase monotonically.
Consider synchronizing based on a create/update timestamp.
Upvotes: 2