diff options
author | beerlington <pete@lette.us> | 2012-08-05 10:22:05 -0400 |
---|---|---|
committer | beerlington <pete@lette.us> | 2012-08-05 11:35:18 -0400 |
commit | d1f7590577c61e33bcfa1b146971c47924823238 (patch) | |
tree | a5051bc961784669e5c0247da6ef3b75959737ad /activerecord/test/cases/json_serialization_test.rb | |
parent | daf9f9ffa608b24c475403b9a0b3839ca373b2db (diff) | |
download | rails-d1f7590577c61e33bcfa1b146971c47924823238.tar.gz rails-d1f7590577c61e33bcfa1b146971c47924823238.tar.bz2 rails-d1f7590577c61e33bcfa1b146971c47924823238.zip |
Changing AR:CollectionAssociation#empty? to use #exists?
COUNT(*) queries can be slow in PostgreSQL, #exists? avoids this by
selecting a single record.
Diffstat (limited to 'activerecord/test/cases/json_serialization_test.rb')
0 files changed, 0 insertions, 0 deletions