August 8, 2016 at 8:43 pm
Comments posted to this topic are about the item Reclaiming Space After Column Data Type Change
August 9, 2016 at 7:19 am
We do a weekly rebuild of our index set.
August 9, 2016 at 8:45 am
Awesome article, thanks!
For the free sql server version limited to 10 GB, Alter becomes a problem. I've gotten into the routine of always copying a table to an empty database, dropping the original table, and then creating the new and pulling in the data from the holding database. I've got scripts which automate the whole process. This keeps me from getting aborts due to the 10 GB limit.
Actually I've always suspected "Alter" was smoke and mirrors due to the space usage and have avoided it from the start.
September 26, 2016 at 6:27 am
Great article, thanks.
qh
May 23, 2022 at 7:32 pm
That was an awesome article!
May 24, 2022 at 5:11 pm
Just ran across this article... I agree! Very nicely done, especially with the page-level proofs!
As a bit of a sidebar, the reason why such a small change caused the Clustered Index to initially double in size is because it caused every row to grow a little. Since the pages were as full as they could get, it didn't take much to cause every page in the index to split. Here's what that all looks like... notice the fragmentation percent and the page density... (and I used the DBO schema in a "scratch" database for the test).
Here's what sp_IndexDNA™ looks like for that index (all the pages of the index are about half full).
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply