Hi, I want to integrate SyncThing in a project for which I will use the /rest/events/disk endpoint in order to be notified of all new files arriving to a folder. This information will be integrated into a database, with priority on robustness and resilience in case of crashes, so I want to be sure that I don’t process a file twice. I will periodically call the endpoint with a “since=x” parameter, and I want to set this value to the maximum value present in my database for already processed items (…“SELECT MAX(SYNCTHING_ID) FROM MY_TABLE”…). This would work only if the id is always growing. So the question is: is the “id” field returned in the endpoint for each new file always increasing? thanks in advance
No, it is reset on Syncthing restart.
1 Like
Thanks. and what about the field globalID? is it at least unique?