Re: How to avoid filesort
KimSeong Loh wrote:
> From the EXPLAIN result, it is using the index
> (products_id), try to change the index to
> (products_id,reviews_id) in reviews table.
Thanks for the advice and I will definitely give it a try. :)
Just a quick question, isn't it considered "bad" to have an index that contains a key that is already being indexed elsewhere?
For example, the reviews_id field is the primary key so will I encounter any problems by having a regular index that also includes the reviews_id field?
Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a person does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses their intelligence.
Subject
Views
Written By
Posted
13041
June 11, 2006 06:50PM
7142
June 12, 2006 08:40AM
Re: How to avoid filesort
6377
June 12, 2006 09:10AM
6428
June 12, 2006 01:30PM
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.