Re:Beyond the SQLite Single-Writer Limitation with Concurren...
by glommer on Tuesday October 14, 2025 @08:58PM
(#45586858)
Linux was designed to run in home PCs, and we keep running it in supercomputers. It works just fine. Tools evolve.
Re:Beyond the SQLite Single-Writer Limitation with Concurren...
by crazygringo on Tuesday October 14, 2025 @09:19PM
(#45587024)
Tools don't always need to evolve though. I don't want my hammer to evolve into a screwdriver too, or vice-versa.
Having separate tools for separate things makes sense when the things are different enough.
Re:Beyond the SQLite Single-Writer Limitation with Concurren...
by nextaccountic on Wednesday October 15, 2025 @12:52AM
(#45588193)
Yeah but this tool is evolving. You don't get a say on that, this is open source and devs do whatever they want with their time
Re:Beyond the SQLite Single-Writer Limitation with Concurren...
by crazygringo on Wednesday October 15, 2025 @08:40AM
(#45591501)
But I do get to ask why. And that's what I'm asking.
"Tools evolve" isn't a use case. So what's the use case where you need concurrent writes for a database that isn't client-server?
Re:Beyond the SQLite Single-Writer Limitation with Concurren...
by Quarrelsome on Tuesday October 14, 2025 @10:01PM
(#45587269)
its a file on disk, it relies on the file handling of the OS and an OS file system doesn't give you the same guarantees as a fully fledged db. Even if you try to fix this problem you're just going to end up with trade offs which to properly mitigate you'll end up approaching running some sort of service anyway. At some point you have to ask yourself if jumping through all these hoops has saved you more effort than just running a proper service.
You can justify it as a migration strategy between a file and a service but you're just hammering in screws if you try to force Sqlite to be a multi-client database.
> If there are many client programs sending SQL to the same database over a network, then use a client/server database engine instead of SQLite[1].
The entire "problem" is a side-effect of using the wrong tool for the job.