0

Our Views with 500K rows are becoming terrible since they can not use the Indexing on underlying tables. The where clause on View has no effect on view creation. Is this true that view is created before the Mysql Where clause is applied as in Sql server? Do we have a way to speed up Our view queries with Where clause and Joins?

One of the issues you have with the MySQL view is that MySQL does not "push" the predicate from the outer query down into the view query. here

select * from reportview_23 where id = 100;
abksharma
  • 576
  • 7
  • 26

1 Answers1

0

You could get into some query limitation inside the view, that prevent view to merge the precidate... Like using LIMIT, DISTINCT, sub-query columns...