News for hackers. Stuff that matters.
Re:SQLite Is Serverless by bane on Sunday January 26, 2020 @12:26PM (#22153297)
> The main argument I hear for why Sqlite deserves second class status in the DB marketplace is the difficulty in handling multiple writes simultaneously.

SQLite is not in the DB marketplace. It's in the file format marketplace. It handles multiple writes in exactly the same way CSV handles multiple writes. If you want to handle multiple writes with SQLite, you handle it the same way as CSV.

Re:SQLite Is Serverless by bshipp on Sunday January 26, 2020 @12:32PM (#22153347)
I disagree. CSVs don't have write-ahead logging and are not able to selectively lock portions file for writes.

And I'd say that not only is sqlite in the db marketplace (albeit for a specific subset of database application types) it's one of the largest players.

Re:SQLite Is Serverless by bane on Sunday January 26, 2020 @12:53PM (#22153467)
Why not? Just roll your own write-ahead log when you are writing to CSVs! That's all the SQLite code is doing.

SQLite does not selectively lock portions of the file for writes. It locks the entire file using the Operating System's own file handling services.

SQLite is a file format. CSVs, XML and JSON are also huge in the dB marketplace. That doesn't make them RDBMSs.

Re:SQLite Is Serverless by hartator on Sunday January 26, 2020 @01:23PM (#22153669)
A collection of CSVs can be used as a database.
Re:SQLite Is Serverless by bane on Sunday January 26, 2020 @01:31PM (#22153720)
Yes! If a database is defined as a place where I can read/write data, then any byte stream that I can read/write to is probably a database of a kind.