aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/database_statements_test.rb
diff options
context:
space:
mode:
authorbeerlington <pete@lette.us>2012-08-05 10:22:05 -0400
committerbeerlington <pete@lette.us>2012-08-05 11:35:18 -0400
commitd1f7590577c61e33bcfa1b146971c47924823238 (patch)
treea5051bc961784669e5c0247da6ef3b75959737ad /activerecord/test/cases/database_statements_test.rb
parentdaf9f9ffa608b24c475403b9a0b3839ca373b2db (diff)
downloadrails-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/database_statements_test.rb')
0 files changed, 0 insertions, 0 deletions