Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bhaak
on Jan 3, 2023
|
parent
|
context
|
favorite
| on:
Understanding the N + 1 queries problem
IME if ActiveRecord is not sufficient, you go directly to SQL.
find_by_sql gives you enough freedom to get everything out of the db into a ActiveModel object.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
find_by_sql gives you enough freedom to get everything out of the db into a ActiveModel object.