hi,
i am using ransack and i am experiencing slow queries, eg on the search sites i have a query like that:
SELECT DISTINCT COUNT(DISTINCT `tablename`.`id`) FROM `tablename` WHERE (`tablename`.`city` LIKE '%Tampa%');
~5sec
w/o distinct
~ 6sec
w/o distinct & w/o where
~4 sec
what do you guys do? i reviewed all indexes, datatypes, memory is ok. no overload.
and yet i am feeling that i am missing something....
thx