Sql updating table definition


Effectively, the data is stored twice, once in its base table and once in the clustered index of the Indexed View.Also, On-Line Transaction Processing systems (OLTP) will actually suffer performance loss if you try to use View Indexes.Without a unique index, the processing for updating the Indexed View records could be unacceptably long.As I indicated earlier, I experienced query times 3 times quicker using the Indexed Views over the same query not using the Indexed Views on the sample data in the North Wind database.


The data accessed through a view is actually constructed using standard T-SQL select command and can come from one to many different base tables or even other views.

In essence, the Indexed View replaces your de-normalized fields and all the work of keeping this de-normalized aggregate field up to date is taken care of by the database engine.



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>