~/talk

ActiveRecord can't do it? Arel can!

Talkat Red Dot Ruby Conference 2014 · 2014-06-26..06-27· [databases, ruby]
links:none on file
slides:none on file

Claim: Arel generates complex, database‑agnostic SQL that Active Record does not expose, and the talk demonstrates that by building real queries and showing they produce the same SQL. Examples use matches_any and does_not_match for predicates, combine subqueries with intersect and union, alias tables (locations2), build outer and self joins, use name functions and window functions, and plug Arel nodes back into Active Record joins. An app with 10 active users motivates performance and shows the approach works.

AI-written summary · about

  1. 0:00Start
  2. 2:10Backpackers
  3. 2:25Finding lost bags
  4. 5:18Searching for Indian food!
  5. 6:54I need vegetarian Indian food!
  6. 7:51Locations with bookings && rating 3
  7. 11:44All hotels within 5 km of malls
  8. 15:02Other use of Named functions
  9. 17:28Windows
~/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.