Script to extend sp_BlitzIndex with more details on missing indexes
Created by Alin Selicean ([email protected]) at 2014/10/13 19:28:53 +0000:
I always wanted to see near the missing indexes details, some info on estimated space required to implement that index, whether the base table uses compression, FG where the base table resides, whether there's enough space in the FG or do I need to provision more... The script I developed provides these details and I think it can be integrated with sp_BlitzIndex. Because script is too long to paste it here, I've shared it here: http://1drv.ms/ZWVKpI.
Uservoice URL: http://brentozarultd.uservoice.com/forums/250742-general/suggestions/6557307-script-to-extend-sp-blitzindex-with-more-details-o
We couldn't (shouldn't) use this, even if we wanted to. The calculations could be wildly incorrect:
([Sum_Rows] * [Index_Key_Size]) / 1024. / 1024. AS Key_Space_Required_MB,
([Sum_Rows] * ISNULL([Index_Included_Columns_Size],0)) / 1024. / 1024. AS Included_Columns_Space_Required_MB,
(([Sum_Rows] * [Index_Key_Size]) + ([Sum_Rows] * ISNULL([Index_Included_Columns_Size],0))) / 1024. / 1024. AS Overall_Space_Required_MB,
All of these assume that:
- There's no page or row overhead.
- Rows pack onto pages at 100% fill factor.
- Default fillfactor is unchanged.
Not expecting anyone to implement such a thing, but these are features I'd want to see before we implemented anything like this.
Agreed.
Kendra Little sent from my phone On Oct 13, 2014 1:38 PM, "Jeremiah Peschka" [email protected] wrote:
We couldn't (shouldn't) use this, even if we wanted to. The calculations could be wildly incorrect:
([Sum_Rows] * [Index_Key_Size]) / 1024. / 1024. AS Key_Space_Required_MB, ([Sum_Rows] * ISNULL([Index_Included_Columns_Size],0)) / 1024. / 1024. AS Included_Columns_Space_Required_MB, (([Sum_Rows] * [Index_Key_Size]) + ([Sum_Rows] * ISNULL([Index_Included_Columns_Size],0))) / 1024. / 1024. AS Overall_Space_Required_MB,
All of these assume that:
- There's no page or row overhead.
- Rows pack onto pages at 100% fill factor.
- Default fillfactor is unchanged.
Not expecting anyone to implement such a thing, but these are features I'd want to see before we implemented anything like this.
— Reply to this email directly or view it on GitHub https://github.com/BrentOzarULTD/PublicTools/issues/61#issuecomment-58951275 .