Do database views affect query performance?

前端 未结 7 1180
栀梦
栀梦 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:24

    I know this is an old thread. Discussion is good, but I do want to throw in one more thought. Performance also depends on what you are using to pull data with. For example, if you are front-ending with something like Microsoft Access you can definately gain performance for some complex queries by using a view. This is because Access does not always pull from the SQL server as we would like -- in some cases it would pull entire tables across then try to process locally from there! Not so if you use a view.

提交回复
热议问题