Re: union, where and indices
Posted by:
Rick James
Date: March 13, 2010 11:46AM
Sorry. VIEW optimization in MySQL are still pretty primitive. I prefer not to use VIEWs, but instead construct the necessary SELECT myself. That way, I would naturally put the WHERE clause on each SELECT in a UNION. And also avoid the extra subquery layer.
You could go to bugs.mysql.com and submit a feature request. What you supplied for this forum thread should be close to what is needed for that.
Subject
Views
Written By
Posted
9457
March 12, 2010 09:21AM
Re: union, where and indices
2231
March 13, 2010 11:46AM
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.