Performance of VIEW vs. SQL statement

后端 未结 3 844
-上瘾入骨i
-上瘾入骨i 2020-12-15 07:22

I have a query that goes something like the following:

select  
from 
where 
and 

        
      
      
      
3条回答
  •  星月不相逢
    2020-12-15 07:58

    Regular (non indexes / materialized) Views are just aliases; they don't offer any performance advantages. Selecting from a View generates exactly the same query plan as selecting directly from the table.

提交回复
热议问题