September 16, 2011 at 2:45 am
I always thought that partitioned index rebuilds are offline with no choice for online. this is a limitation of partitioned indexes.
Someone just told me over a coffee that they are only offline if you perform the rebuild on individual partitions, but if you do the whole index its online.
Is this true?
September 16, 2011 at 3:03 am
http://technet.microsoft.com/en-us/library/ms188388.aspx
WITH (<single_partition_rebuild_index_option>)
SORT_IN_TEMPDB, MAXDOP, and DATA_COMPRESSION are the options that can be specified when you rebuild a single partition (PARTITION = n). XML indexes cannot be specified in a single partition rebuild operation.
Rebuilding a partitioned index cannot be performed online. The entire table is locked during this operation.
September 16, 2011 at 3:36 am
Jayanth_Kurup (9/16/2011)
http://technet.microsoft.com/en-us/library/ms188388.aspxWITH (<single_partition_rebuild_index_option>)
SORT_IN_TEMPDB, MAXDOP, and DATA_COMPRESSION are the options that can be specified when you rebuild a single partition (PARTITION = n). XML indexes cannot be specified in a single partition rebuild operation.
Rebuilding a partitioned index cannot be performed online. The entire table is locked during this operation.
Hi.
yes, i saw that section of BOL, and it is the section on rebuilding a specific partition of a partitioned index (hence the WITH (<single_partition_rebuild_index_option>))
But the document does not describe if rebuilding a partitioned index without specifying a partition can be done online, or if it is also an offline operation.
September 16, 2011 at 4:19 am
You could setup a test and rebuild a partitioned tables partitioned index and see how locking behaves by e.g. sampling sp_lock or trace locking
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply