Closed roncohen closed 10 years ago
There should probably be a way to turn fsync on/off (currently always off). Without calling fsync, the data can be in a write cache and not reach the filesystem.
It's a correctness/performance tradeoff that you could let the user make.
Thanks for posting this! fsync is always enabled now. To disable it use flatfile(path, {fsync:false}.
flatfile(path, {fsync:false}
Released as 0.1.2
There should probably be a way to turn fsync on/off (currently always off). Without calling fsync, the data can be in a write cache and not reach the filesystem.
It's a correctness/performance tradeoff that you could let the user make.