~/talk

ActiveRecord can't do it? Arel can!

Talkat Garden City Ruby 2015 · on Saturday, 2015-01-10· [ruby-on-rails, databases]
links:none on file
slides:none on file

Rails uses Arel under the hood to build SQL and the talk shows concrete swaps: a production Backpackers app with 31 users moves raw Postgres SQL into Arel expressions using Location.arel_table and attribute predicates like matches, does_not_match and GT. It composes complex queries—aliased self joins for “nearby locations within 5 km,” multi-join conditions, join_sources to feed ActiveRecord, and set operations like intersect/union/except—plus wrapping DB functions via Arel name functions so Postgres encryption and ordering live in portable AST nodes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:36Dippin
  3. 1:36Location
  4. 2:00Meetups
  5. 2:37Ruby India
  6. 3:16C42 Interview
  7. 5:41Traveler Class
  8. 6:37User count
  9. 7:09Performance
  10. 7:22ActiveRecord
  11. 7:40Query
  12. 8:14Search
  13. 8:24Problems
  14. 8:54What is Arel
  15. 9:32Arel vs ActiveRecord
  16. 10:08How Arel works
  17. 10:22How do I use it
  18. 10:41Getting started
  19. 10:52Write convenient method
  20. 11:09Refactor query using error
  21. 12:00Arel syntax tree
  22. 13:56Array arguments
  23. 14:23Arel hardcore
  24. 15:11Arel joints
  25. 15:21Arel waves
  26. 16:42Arel join conditions
  27. 17:54Arel focus
  28. 19:35Nearby locations
  29. 19:55Alias
  30. 20:56Joints
  31. 21:34Encryption
  32. 22:31Name Functions
  33. 23:13Order
  34. 23:41Summary
  35. 24:27Conclusion
~/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.