Do database views affect query performance?

前端 未结 7 1075
栀梦
栀梦 2020-12-15 04:48

Are database views only a means to simplify the access of data or does it provide performance benefits when accessing the views as opposed to just running the query which th

7条回答
  •  有刺的猬
    2020-12-15 05:31

    It depends on the RDBMS, but usually there isn't optimization going on, and it's just a convenient way to simplify queries. Some database systems use "materialized views" however, which do use a caching mechanism.

提交回复
热议问题