2 ms·
There are many more reasons to use single-file databases other than safety of file write operations. TextEdit in OS X also creates a temporary file when it sav
by dchest 14y ago
There are many more reasons to use single-file databases other than safety of file write operations.
TextEdit in OS X also creates a temporary file when it saves a document, and then atomically renames it to the original filename; would you claim that RTF document consists of two files in this case?
- rogerbinns 14y agoNot even a close analogy as the text file is always valid. More accurate would be changes being done by modifying blocks of the original file as well as appends on the end so that it is not valid by itself, and storing enough information to make it valid/undo in a second file.