How is it possible to optimize the following mysql query with EXISTS instead of IN function ?
Subscriber.first(:conditions => ["email IN(SELECT email from submissions WHERE url = ? AND confirmed != 0)", url], :order => "RANDOM()")
Thanks for help!
based on sql syntax for exists