diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-11 02:19:58 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-01-11 03:29:50 +0900 |
commit | b4f64cb1595f2abd3d7e47805273f4f029718829 (patch) | |
tree | 3e58dbd5911596ce663a0e2f30ce3ae6c0b01fca /railties/test/fixtures/lib | |
parent | 96f59306101a6ee252df2a9636ef2569d26924f7 (diff) | |
download | rails-b4f64cb1595f2abd3d7e47805273f4f029718829.tar.gz rails-b4f64cb1595f2abd3d7e47805273f4f029718829.tar.bz2 rails-b4f64cb1595f2abd3d7e47805273f4f029718829.zip |
Make `relation.exists?` more performant when using eager loading
`relation.exists?` just wants to know if there is a result or not, does
not need the exact records matched. Therefore, an intermediate SELECT
query for eager loading is not necessary.
Diffstat (limited to 'railties/test/fixtures/lib')
0 files changed, 0 insertions, 0 deletions