~/talk

Ruby Preserves

Talkat RubyConf 2015 · 2015-11-15..11-17· [databases]
slides:none on file

A tiny ORM called Ruby Preserves claims to keep the essence of mapping while staying 350 lines long and using raw SQL instead of a DSL; it implements the Repository and Data Mapper patterns, supports has_many and belongs_to with eager-loading to avoid N+1, ties closely to Postgres, lacks ActiveModel and composable scopes, and works as a proof of concept rather than production-ready code while planning prepared statements and automatic mappings.

AI-written summary · about

  1. 0:00Intro
  2. 0:20About Me
  3. 1:39Why?
  4. 2:57Opinion
  5. 5:30ActiveRecord
  6. 6:20Active Record Pattern
  7. 8:50Data Mapper Pattern
  8. 9:55Repository Pattern
  9. 11:08Ruby Preserves
  10. 11:36Domain Model
  11. 13:05Data Mapping
  12. 14:15Repository Methods
  13. 15:23Relationships - Has Many
  14. 16:22Relationships - Belongs To
  15. 17:16N+1 Queries
  16. 18:15Wrong Turns
  17. 19:22Relationships - JOINS
  18. 21:12Advantages - Size
  19. 22:09Disadvantages
  20. 23:34Further Work
  21. 26:01Alternatives
  22. 30:17Further Reading
  23. 31:18Feedback
~/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.