To gain performance, do I need to index ALL the fields in the where
clause.
Say we have a query like:
select stuff from table where field1=.. and field2=...
If field1 selection substantially reduces the number of records
selected, do we really need to index field2 as well.
In other words, does the query first subselect from the first argumet,
and then select further from the subset, or does the query do two
independent subselects and then merge them together?
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-indexi...ict156808.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=524834