I was entrusted with the task of improving data management processes (data archiving) into pairs of table tables similar to 200gb
Now I'm reading about table splitting and best practices, and as far as I know, now the process is going on as
- create filegroups and files
- create partition function
- partition scheme - (display intervals for apppriate filegroups)
- recreate a clustered index - this is the moment when the table is physically moved to other files.
- profit:)
but cannot find one information what is happening with existing non-clustered indexes at the moment? from here: http://technet.microsoft.com/en-us/library/ms187526(v=sql.105).aspx I found
Although partitioned indexes can be implemented independently of their underlying tables, it usually makes sense to create a partitioned table and then create an index on the table. When you do this, SQL Server automatically partitions the index using the same partition scheme and partition column as the table. As a result, the index is split essentially the same as the table. This makes the index aligned with the table.
and one more
When splitting a unique non-clustered index, the index key must contain a split column. When splitting a non-key non-clustered index, SQL Server adds the default partition column as the keyless column of the (included) index to ensure that the index is aligned with the base table. SQL Server does not add a partition column to the index if it is already in the index.
but none of these links is my problem I need to explicitly create a partition function for existing non-clustered indexes that / do not have a separation column in their definition?
lets say that we have a table like
table A - col1 col2 col3
with a clustered index on col1 and not grouped on col 3 in the PRIMARY section
what will happen to the non-clustered index on col3 after partitioning, will it be aligned with the table or will still be in the PRIMARY section
source share