Does rebuilding index reduce the physical size of the database?
Does rebuilding index reduce the physical size of the database?
No. if in the index rebuild, you result in less space being needed, then this simply remains as available free space in the data files.
But it is possible that rebuilding indexes could result in increasing the physical size of the database
Various reasons:
You may need space inside the files to create the new index - especially in ONLINE operations where the old index is still available for use whilst the new one is built.
The new index may be larger than the old index, due to fragmentation (defined by the fill factor %)
The rebuild operation is logged, so log file growth could be happening
17 People are following this question.