MySQL Forums
Forum List  »  Optimizer & Parser

Re: Why does this query take 2 minutes?
Posted by: Mike Petit
Date: February 03, 2005 07:21AM

Thanks, I'll try that. Here's a followup question: if I build compound indexes like this for varying combinations of columns, will the SQL optimizer pick the best choice. Example: index1 on (hid,hcreationtimestamp), index2 in (hid,hcreationtimestamp,hresultid). If the query in on hid and hcreationtimestamp, will the optimizer know to pick index1? How about if the query is on hid only? Thanks :)

Options: ReplyQuote


Subject
Views
Written By
Posted
3418
February 02, 2005 10:39AM
2327
February 02, 2005 07:36PM
Re: Why does this query take 2 minutes?
2048
February 03, 2005 07:21AM
2142
February 03, 2005 08:34PM
2199
February 03, 2005 08:43PM


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.