English 中文(简体)
Performance impact of indexed view in MS SQL Server 2008
原标题:

Does anyone have experience with using indexed view in MS SQL Server 2008? I am trying to find out how does indexed view affect performance of insert / update statements, that are adding / updating rows in tables, which are being used by the indexed view (assuming the indexed view is a select joining a few tables together). Given that all data that are result of the view s underlying select are indexed, I am guessing that there has to be some triggers behind the scenes that update those indexed data when something is added / changed. However I wasn t able to find any useful information on this matter.

最佳回答

This msdn link is the last word on the subject:
http://msdn.microsoft.com/en-us/library/dd171921.aspx

For your specific question, pay special attention to the "Design Considerations" section, specifically the "Maintenance Cost Considerations" sub-section.

问题回答

I think it s useful enough to think of the indexed view as being supported by triggers by the system. The performance implications should be similar.





相关问题
Performance impact of indexed view in MS SQL Server 2008

Does anyone have experience with using indexed view in MS SQL Server 2008? I am trying to find out how does indexed view affect performance of insert / update statements, that are adding / updating ...

Lock Escalation - What s happening here?

While altering a table (removing a column) in SQL Server 2008, I clicked the Generate Change Script button and I noticed that the change script it generated drops the column, says "go" and then runs ...

Round to nearest 5 in SQL Server

I have a Money column in my SQL Server 2008 table. In my below query how can I round it to nearest 5$ select FineAmount from tickets Thanks

热门标签