Files
SpacetimeDB/crates/datastore
Kim Altintop 818e9b271e snapshot: Ensure all snapshot files are durable (#4891)
When creating or compressing a snapshot, `fsync` all files and
directories, so as to ensure that the snapshot is durable on the local
disk.

This obviously amounts to a large number of `fsync` calls, which may
negatively impact performance of taking a snapshot -- since we hold a
transaction lock while taking a snapshot, this is not to be taken
lightly.

# Expected complexity level and risk

3 -- performance impact

# Testing

I haven't quantified the performance impact.
2026-04-30 06:25:08 +00:00
..
2026-02-17 10:15:15 +00:00
2025-08-12 18:20:58 +00:00