Except for performance, is there any downside to this?
In other words: When you store data in an application that only reads and writes data occasionally, is it a good idea to use the git approach and store it in files?
Except for performance, is there any downside to this?
In other words: When you store data in an application that only reads and writes data occasionally, is it a good idea to use the git approach and store it in files?
You can use a jj repo concurrently, e.g., over Dropbox with coworkers, and all it requires is a minor modification on top of the existing Git data model.
For example here on HN (which afaik also stores the data in files) you can change a comment you wrote. But that type of mutability does not call for transactions, right?
And does git not need crash durability?
Think maildir vs. mbox/PST/etc. for message storage. I stopped counting the number of times that I have seen Outlook mangle its message database and require a rebuild.
Generally it is not so popular, in part because of the OSes like Windows and macOS which have somewhat lacking filesystem implementations. Git also has performance issues with large repositories on Windows, which need to be worked around by various methods.
Transactions are another limitation as mentioned by the other reply (they are possible to implement on top of "normal" filesystems, but not in a portable way).