This question arose from me doing 2 types of performance tweaks:
- changing a lot of my
where().present?statements towhere().exists? - changing a lot of my
where().firsttofind_by()
Sitting at the intersection of this is situations where I had previously written .where().first.present? and I'm wondering what would be more performant to change it to: .find_by().present? or .where().exists?