database_cleaner/lib
Kevin Burke f3feaa36ba
Use count(*) > 0 instead of count(*)
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.
2018-04-24 13:55:35 -07:00
..
database_cleaner Use count(*) > 0 instead of count(*) 2018-04-24 13:55:35 -07:00
database_cleaner.rb add DatabaseCleaner safeguard config accessors 2018-04-02 16:16:58 -04:00