Re: Avoiding "Using temporary; Using filesort"
Sorry, I should really have added that my conclusion was that the query engine is always going to either restrict the publication_credits table on the basis of author_id first (i.e. do the WHERE) or do the join first. So it'll either use the index on author_id or publication_id. Once it's done that, the index on date from the publications table is no longer of any use as it indexes the full table. So it's going to have to be a filesort.
However some stuff I've read indicates that I should be able to optimize this to avoid the filesort. Some query reviewers report output with "Using temporary; Using filesort" as an error.
Thanks in advance,
Danny.
Subject
Views
Written By
Posted
4768
July 15, 2011 07:34AM
Re: Avoiding "Using temporary; Using filesort"
1582
July 15, 2011 07:45AM
1505
July 17, 2011 04:01AM
1546
July 17, 2011 09:45PM
1788
July 18, 2011 12:35PM
1910
July 18, 2011 08:08PM
1869
July 20, 2011 07:27AM
1252
July 26, 2011 02:35AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.