Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yarb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
yarb
11y ago
"But there is no easy way to do this in ActiveRecord without sacrificing eager loading." Define a relationship: has_many :approved_comments, class_name: "Comments", condtions: {approved: true} Then eager load approved_co