MySQL Forums
Forum List  »  PHP

Re: Complex search - multiple fields and tables - need advice.
Posted by: Luke Pittman
Date: April 18, 2012 11:24AM

For those of you who stumble upon this thread here are some results to show just how crucial proper indexes are:

Speed of original query: 89 seconds
After adding contact_id index to contact_communications: 7.4 seconds
Then adding contact_id index to contact_notes: 0.16 seconds

I feel bad for even posting this thread after not reading the explain results carefully enough!

Options: ReplyQuote

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.