~/talk

SQLite on Rails: Everything you need to know

Talkat Friendly.rb 2024 · 2024-09-18..09-19· [ruby-on-rails, databases]
slides:none on file

Claims that SQLite can run production Rails apps once tuned, and a one‑liner script now configures it: it installs active_record_enhance_sqlite3_adapter to avoid busy errors and reimplements busy timeouts to release the GVL, wires up separate SQLite DBs for solid_q/cache/cable (4–7 DBs), and adds lightream backups plus a verification job. Benchmarks show ~10× faster than local Postgres and 500–1000× vs remote, and P99.99 latency falls under ~500ms after fixes; the repo is public and the tooling demonstrably works.

AI-written summary · about

  1. 0:00Introduction to SQLite on Rails
  2. 3:36Why SQLite for Rails
  3. 8:10Challenges with SQLite in Rails
  4. 14:16Introducing the Enlightenment script
  5. 18:29Solving SQLite performance issues
  6. 27:22Solid gems and SQLite
  7. 31:42Data backups with Litestream
  8. 36:54Error monitoring with Solid Errors
  9. 39:29Miscellaneous SQLite tips
  10. 44:01Conclusion and resources
~/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.