boostnote-github-sync icon indicating copy to clipboard operation
boostnote-github-sync copied to clipboard

Process restart with `enumerateOnStartup` set to true causes all the notes getting synced again

Open deepal opened this issue 6 years ago • 0 comments

If the enumerateOnStartup is set to true and process is restarted due to some issue, the entire enumeration process happens again (even for the already synced notes).

The best way to do this is:

  • keep the metadata file always in-sync
  • Verify the note's checksum with the metadata file's corresponding checksum for the file
  • Sync only if the checksum is changed

deepal avatar Feb 25 '19 08:02 deepal