September 17, 2019 at 1:32 pm
HI,
i'm trying to workout the impact of dropping an re creating a clustered index on the same key. I understand that if i drop a clustered index the table will be converted to a heap and any none clustered index will be rebuilt to include the RID. if this clustered index is then added again the none clustered indexes will be rebuilt again?
i'm a newbie and i have a little bit of an argument with DEV who do this every upgrade, other than performance issues are there any other implications?
thanks
September 18, 2019 at 2:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
September 18, 2019 at 2:17 pm
Two questions, what do you mean by upgrade? And why are they dropping and recreating instead of just rebuild?
September 18, 2019 at 2:23 pm
I'll echo ZZartin's questions and ask one more... how big is this clustered index in rows, columns, and GB occupied?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 19, 2019 at 9:38 am
What's wrong with a simple ALTER INDEX cl_ix ON schema.table REBUILD ... ? ( as that does not impact the non-clustered indexes )
Keep in mind this will also interfere with ongoing operations on that table !
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
September 19, 2019 at 3:50 pm
Run a test, look at blocking with drop and create v rebuild. Add some activity on the table while you do this. If that doesn't help a developer understand, document their choice and be ready if this causes issues.
Is there a good reason from the dev to do this?
September 20, 2019 at 1:50 am
Looks like the OP has left the building.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy