Re: Optimizer Stablility
Hi Chris,
How MySQL handles views is very predictable. Depending on the view definition, the view may be merged into the query where it is used, or it may have to be run separately and the result stored in a temporary table. However, for a given view, the merge will either always happen or never at all.
Starting with MySQL 5.7, derived tables (subqueries in FROM clause) will be handled the same way as the corresponding view. Hence, there should be no benefit from using a derived table over a view.
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
893
August 16, 2017 12:56AM
Re: Optimizer Stablility
557
August 16, 2017 02:19AM
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.