Re: Optimize complex query with arithmetic calculations
Thanks for your thoughts.
I am wondering if every website that runs MySQL has indexes like in your example, which is what my DB looks like now!
So assuming I have 4 columns in the most-accessed main table, I have a variety of permutations of WHERE conditions:
where col1 = xyz
where col2 = xyz
where col3 = xyz
where col4 = xyz
where col1 = xyz and col3 = abc
where col2 = xyz and col3 = abc
..etc
So for each of these situations, is it customary to have an individual index on the columns, and then composite indexes?
Subject
Views
Written By
Posted
2683
May 31, 2005 01:41AM
1793
May 31, 2005 01:54AM
1573
May 31, 2005 07:30PM
1600
June 03, 2005 05:17PM
Re: Optimize complex query with arithmetic calculations
1470
June 03, 2005 10:08PM
1576
June 04, 2005 07:37AM
1922
June 04, 2005 10:38AM
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.