~/talk

Sequel: When ActiveRecord is not enough

Talkat rubyday 2020 · on Wednesday, 2020-09-16· [ruby-on-rails, ruby]
slides:none on file

Claims concrete wins: Sequel yields ~2× faster queries and ~3× fewer allocations in a 1,000-row benchmark versus ActiveRecord, and reads all columns eagerly to avoid hidden lazy costs. Tooling includes a rich expression API (like Arel but public), a Postgres JSONB expression builder, cursor/stream and COPY support, and a plugin model that keeps core small. Connection handling avoids AR pool pitfalls and there’s a reuse ActiveRecord connection gem to integrate Sequel into Rails.

AI-written summary · about

  1. 0:00Intro
  2. 2:45About me
  3. 5:30Comparing ActiveRecord and Sequel
  4. 8:14ActiveRecord API
  5. 9:51ActiveRecord Associations
  6. 10:57SQL Design
  7. 13:07SQL Complexity
  8. 15:04SQL Expressions
  9. 18:50eager loading
  10. 21:23advanced features
  11. 23:27performance
  12. 27:25connection pool
  13. 29:33SQL in Rails
  14. 30:47SQL Models
  15. 32:19Conclusion
~/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.