Is a MySQL view faster than a normal query?

后端 未结 2 1652
栀梦
栀梦 2021-02-11 18:04

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

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-11 18:38

    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.

提交回复
热议问题