MySQL Forums
Forum List  »  Performance

Re: Adding Order by slows query...
Posted by: Bruce Duncan
Date: October 14, 2004 10:16AM

Harrison,
Here's the Explain (sorry about the format)


table: type: possible_keys: key: key_len: ref: rows: Extra:

UserList: ref: ListID,UserInfoID: UserInfoID: 5: const: 3: Using where; Using temporary; Using filesort :

List: eq_ref: PRIMARY,ListID: PRIMARY: 10: UserList.ListID: 1:

ZipListMatrix: ref: ListID,ZipID: ListID: 11: List.ListID: 105509: Using where:



Are you suggesting I create an combined index in both tables? If so, how do I get the query to use them? Thanks for your feedback...it's greatly appreciated!

-bruce

Options: ReplyQuote


Subject
Views
Written By
Posted
5170
October 14, 2004 09:43AM
2564
October 14, 2004 09:53AM
Re: Adding Order by slows query...
2679
October 14, 2004 10:16AM
2620
October 15, 2004 08:37AM


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.