Get the latest tech news

SQLite on Rails: The how and why of optimal performance


This is my personal site, where I write about Ruby, programming, and any of my varied fascinations.

Over the last year or so, I have found myself on a journey to deeply understand how to run Rails applications backed by SQLite performantly and resiliently. By ensuring that the GVL is released while queries wait to retry acquiring the lock, we have massively improved our p99 latency even when under concurrent load. In the end, I hope that this exploration of the tools, techniques, and defaults for SQLite on Rails applications has shown you how powerful, performant, and flexible this approach is.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of rails

rails

Photo of optimal performance

optimal performance

Related news:

News photo

Scaling Rails and Postgres to millions of users at Microsoft

News photo

Rails Is Good Enough

News photo

Rendering Markdown Views in Rails