Performance of Tables vs. Views

后端 未结 3 1594
深忆病人
深忆病人 2021-02-19 19:35

Recently started working with a database in which the convention is to create a view for every table. If you assume that there is a one to one mapping between tables and views,

3条回答
  •  甜味超标
    2021-02-19 20:24

    The only pain I have had with views is a distributed query over a DB link. The local optimizer gets some details about the remote object, but the view doesn't tell it about any indexes so you can get some kooky plans.

    I've heard about some places that use it as a standard since they can easily 're-order' the columns in a view. Not a big benefit in my opinion by YMMV

提交回复
热议问题