Is a MySQL view faster than a normal query?

后端 未结 1 1533
难免孤独
难免孤独 2021-02-11 18:26

I have a complex query using many joins (8 in fact). I was thinking of simplifying it into a view. After a little research I can see the benefits in simplicity and security. But

1条回答
  •  再見小時候
    2021-02-11 18:45

    No, a view is simply a stored text query. You can apply WHERE and ORDER against it, the execution plan will be calculated with those clauses taken into consideration.

    0 讨论(0)
提交回复
热议问题