sql: DELETE + INSERT vs UPDATE + INSERT

后端 未结 7 1673
花落未央
花落未央 2021-01-19 02:29

A similar question has been asked, but since it always depends, I\'m asking for my specific situation separately.

I have a web-site page that shows some data that co

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 03:03

    Have you considered using a materialized view (MSSQL calls them indexed views) instead of doing it manually? This could also have other performance benefits as an indexed view gives the query optimizer more choices when its constructing execution plans for other queries that reference the table(s) in the view.

提交回复
热议问题