I have a MySQL view defined using the below (JOIN
statements omitted for brevity).
CREATE VIEW vw_example AS
SELECT a, b, c FROM x, y, z
Over many repetitions SELECT a, b, c FROM x, y, z
is 5 times faster than SELECT a, b, c FROM vw_example
.
I'm looking to understand why this is and how to bring the SELECT FROM vw_example
performance inline with the underlying SELECT FROM x, y, z
.