4 ms·
Wouldn't fopen and friends also have issues when locking isn't working properly?
by nikbackm 9y ago
Wouldn't fopen and friends also have issues when locking isn't working properly?
- mjw1007 9y agoThey might well lead to file corruption if two people try to save the same file at once. But that tends not to matter in practice for applications like word processors (which often want to implement their own system to stop two people opening the same in editable mode at the same time, not just stop them saving at the same time). Or the fopen-using application can just do things the simple way and write out a new temporary file to replace the old one with.
- wruza 9y agoThe same way sqlite-using app could write a new database file and replace the old. What does this argument support in this subthread?
- mjw1007 9y agoThen you lose many of the advantages being touted in the « What If OpenDocument Used SQLite? » page that we're discussing. Consider the following paragraph: « Hence, "File/Save" takes longer than it ought, especially on older hardware. Newer machines are faster, but it is still bothersome that changing a single character in a 50 megabyte presentation causes one to burn through 50 megabytes of the finite write life on the SSD. »