News for hackers. Stuff that matters.
Re:SQLite on Rails: The how and why of optimal performance by charleslmunger on Wednesday September 11, 2024 @09:50PM (#41516892)
You don't need to turn off synchronous mode, but you can set it to NORMAL, which will only fsync when compacting the WAL file.

Another great pattern for batch writes is to use a system like Nagle's algorithm - push stuff into a queue, and insert from the queue in batches.

There are no comments on this comment yet.