aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing
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 /actionpack/lib/action_dispatch/testing
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 'actionpack/lib/action_dispatch/testing')
0 files changed, 0 insertions, 0 deletions