~/talk

SQLite on Rails: From rails new to 50k concurrent users and everything in between

Talkat EuRuKo 2024 · 2024-09-11..09-13· [ruby-on-rails, databases]
slides:none on file

Step‑by‑step workshop showing how to run a full Rails app on SQLite: use Ruby 3.3 for fewer connection errors, set the adapter to begin immediate transaction (database.yml) to avoid SQLITE_BUSY failures, split data into separate databases for app, jobs, cache and errors, add point‑in‑time backups with Litestream, install the enhanced sqlite3 adapter or monkey‑patch busy timeout to eliminate long tail latency (orders‑of‑magnitude P99 improvement), and add extensions (vector search, FTS) and Solid Q for production jobs; claims scaling to 50k+ concurrent users.

AI-written summary · about

  1. 0:00SQLite on Rails intro
  2. 8:01Setting up the workshop environment
  3. 11:05Baseline performance
  4. 21:07Fixing SQLite lock errors
  5. 35:52SQLite transaction modes
  6. 41:48Reducing tail latency
  7. 51:43Monkey patches for SQLite
  8. 1:01:45Rails features unlocked
  9. 1:06:23Litestream resilience
  10. 1:21:05Backup restore checks
  11. 1:37:12Solid Queue jobs
  12. 1:41:12Multiple SQLite DBs
  13. 1:44:53Solid Cache setup
  14. 1:46:40SQLite optimizations
  15. 1:51:23Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.