4 ms·
> Sadly modern filesystems still don't support ACID transactions They offer range locking, optimistic locking, snapshots, atomic swaps, durable writes and vari
by the8472 7y ago
> Sadly modern filesystems still don't support ACID transactions
They offer range locking, optimistic locking, snapshots, atomic swaps, durable writes and various other interesting features as primitives. If you're willing to build some data storage around a specific filesystem you can do a lot. The correct incantations to get those features can be a bit gnarly, but so is coding database engines.
NTFS even offers actual transactions, although their use is discouraged.
- kragen 7y agoInteresting, why is their use discouraged? Because Jim Gray’s sailboat sank?
- the8472 7y agohttps://docs.microsoft.com/en-us/windows/win32/fileio/deprecation-of-txf https://docs.microsoft.com/en-us/windows/win32/fileio/deprec...
- kragen 7y agoThis just says that since nobody uses it they might delete it, but it doesn't explain why nobody uses it. Presumably because it doesn't work well or is hard to use, but which, and how?