RUBY 476: SQL, Arel and the Dark Side of ActiveRecord with Eric Hayes

Episode 484 · November 3rd, 2020 · 1 hr 3 mins

About this Episode

In this episode of Ruby Rogues, Eric Hayes joins us with the story of his journey into the dark, undocumented depths of Arel, ActiveRecord’s private API. We learn why writing custom SQL queries in 2020 can make sense and how to unlock the more powerful features of modern databases without resorting to SQL strings. Eric tells us how he manages the potential pitfalls of using Arel and achieves massive performance wins for difficult queries on large databases.



  • Dave Kimura
  • John Epperson
  • Luke Stutters
  • Charles Max Wood


  • Eric Hayes



Luke Stutters:


John Epperson:

Dave Kimura::

Eric Hayes:

Follow Ruby Rogues on Twitter > @rubyrogues