Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Partitioning indexed views Expand / Collapse
Posted Sunday, February 27, 2011 11:28 AM


Group: General Forum Members
Last Login: Thursday, November 21, 2013 12:42 AM
Points: 152, Visits: 198
Hi guys,

I am thinking to create some indexed views as I have some of very complex queries and I am not able to optimize them further. I have already created some indexed views and getting much improved performance. But I am little bit afraid that what would happen when my database size will increase, as indexed views are nothing but object like tables which occupy space in DB and whenever DML operations perform on the participant tables it gets updated (rows get updated/deleted/inserted).

Can we partition the indexed views in same fashion as we can do with tables?

Kindly help me out?

Post #1070193
Posted Monday, February 28, 2011 10:00 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, October 17, 2016 12:24 PM
Points: 74, Visits: 156
I think this page may answer your question:

Defining indexed views on partitioned data can further increase the speed and efficiency of your queries. These defined views are called partition-aligned indexed views.
An indexed view is partition-aligned with the table it references if the following conditions are true:
The partition functions of the indexes of the indexed view and table:
Define the same number of partitions.
Define the same boundary values for partitions.
The arguments of the partition functions must be the same column.

Post #1070642
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse