mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
f3feaa36ba
count(*) requires searching the entire table, which may be large. Querying for count(*) > 0 allows MySQL to give up after a single row is found. Since all we are doing is checking whether the row has a single table, it should be faster to use count(*) > 0. |
||
---|---|---|
.. | ||
database_cleaner | ||
support | ||
rcov.opts | ||
spec_helper.rb |