Optimizing MySql query to avoid using "Using filesort"
- by usef_ksa
I need your help to optimize the query to avoid using "Using filesort".The job of the query is to select all the articles that belongs to specific tag. The query is:
"select title from tag,article where tag='Riyad' AND tag.article_id=article.id order by tag.article_id".
the tables structure are the following:
Tag table
CREATE TABLE `tag` (
…