MySQL Forums
Forum List  »  Optimizer & Parser

Re: Help with index in a view. Index not used. MySql Bug?
Posted by: Rick James
Date: April 04, 2009 10:11PM

(Sorry, I'm going to avoid your question.)
You could insert two rows each time a friendship is established -- a->b and b->a. That would get rid of the need for the UNION. And that would double the speed of the view. And avoid the issue you are raising.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Help with index in a view. Index not used. MySql Bug?
3245
April 04, 2009 10:11PM


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.