When to use database views and when not?

后端 未结 8 991
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 19:31

This question is about database views, not materialized-views.

Pros:

  • Query simplification.
  • Avoid repeat the same joins on mul
8条回答
  •  孤街浪徒
    2020-12-13 19:55

    Views can be easier to be tested than a complex query. When you imagine to unit test SQL, views are the help.

提交回复
热议问题