3 ms·
I'm stunned that you're stunned that people generally don't use text files as data stores.
by pbreit 10y ago
I'm stunned that you're stunned that people generally don't use text files as data stores.
- zeptomu 10y agoHow do you deal with concurrent write access, do you lock the file?
- crucini 10y agoHe probably uses flock(2)
- zeptomu 10y agoBut isn't that hard to get right? At least if you using something like sqlite you get consistency guarantees. Consider your process writing to the file and dying during write() - do you recover and repair the file after you reschedule?
- aalbertson 10y agoRamdisk maybe?