"order by" taking too much time in mysql
mysql
Solution
If you don't have an index on the field that you're ordering by, add one:
"In some cases, MySQL can use an index to satisfy an ORDER BY clause without doing any extra sorting."
Edit: (From the section on ORDER BY optimization in the MySQL documentation.)
Problem
"order by" in query is taking to much time in MySQL. SHOW PROFILES shows that the time is taken by the sorting process. Is there any setting/workaround that will decrease the sorting time ?