I wish to do some optimizations on my SQL queries. Without doing a performance test for it, what query is the most time-consuming ? I am almost sure they return the same result.
!MyClass.find(:first, :conditions => c).nil?
MyClass.count(:conditions => c) > 0
MyClass.count(:conditions => c, :limit => 1) > 0
Regards