News for hackers. Stuff that matters.
Re:IO Devices and Latency by conradev on Thursday March 13, 2025 @04:13PM (#43356835)
Until you hit the single-writer limitation in SQLite, you do not need to spend more CPU cycles on Postgres
Re:IO Devices and Latency by chatmasta on Thursday March 13, 2025 @11:05PM (#43359234)
That’s a limitation you’ll hit pretty quickly unless you’ve specifically planned your architecture to be mostly read-only SQLite or one SQLite per session.
Re:IO Devices and Latency by spratzt on Friday March 14, 2025 @06:07AM (#43361077)
You certainly won’t hit it with most corporate OLAP processing, which is nearly all read-only SQlite. Writes are generally batched and processed outside ‘normal’ business hours, where the limitations of SQlite writing are irrelevant.
Re:IO Devices and Latency by andai on Friday March 14, 2025 @12:54PM (#43364527)
Where are they batched?
Re:IO Devices and Latency by chatmasta on Friday March 14, 2025 @01:45PM (#43365075)
In a separate system maintained by the DuckDB cargo cultists.
Re:IO Devices and Latency by conradev on Friday March 14, 2025 @02:47PM (#43365869)
I'm having a hard time imagining this. Aren't most CRUD apps using OLTP mostly read-only in the first place?

I just feel like you'd need thousands of concurrent users on a typical CRUD app to even get close to straining SQLite.

Re:IO Devices and Latency by theamk on Thursday March 13, 2025 @11:57PM (#43359455)
I'd recommend going with postgres if there is a good chance you'll need it, instead of starting with SQLite and switching later - as their capabilities and data models are quite different.

For small traffic, it's pretty simple to run it on the same host as web app, and unix auth means there are no passwords to manage. And once you need to have multiple writers, there is no need to rewrite all the database queries.