Syncing

cuprate_database's database has 5 disk syncing modes.

  1. FastThenSafe
  2. Safe
  3. Async
  4. Threshold
  5. Fast

The default mode is Safe.

This means that upon each transaction commit, all the data that was written will be fully synced to disk. This is the slowest, but safest mode of operation.

Note that upon any database Drop, the current implementation will sync to disk regardless of any configuration.

For more information on the other modes, read the documentation here.

Last change: 2024-10-17, commit: 978d72b