Unraveling the Mysteries of where.not in Rails
Explains the subtle but important difference between using combined and separate where.not clauses in Ruby on Rails ActiveRecord queries.
Explains the subtle but important difference between using combined and separate where.not clauses in Ruby on Rails ActiveRecord queries.
Techniques to identify, debug, and fix N+1 queries in Rails apps using tools like FactoryBot and rack-mini-profiler.
Explains how to break eager loading in Rails apps with SQL ORDER BY and how to fix N+1 issues.
Identifies three common ActiveRecord usage mistakes in Rails that cause unnecessary SQL queries and slow down application performance.
A guide to displaying generated SQL queries in the Rails 3 console by configuring ActiveRecord's logger to output to STDOUT.