Hi All,I've been trying to get a definitive answer to this question but alas I have conflicting and patchy answers so far from other sources. Would greatly appreciated your wise feedbackThe question is this - example:I have an index that, lets say, requires 10GB of data space to rebuild This index resides on a filegroup that spans 2 files on two seperate drives (i.e. a mdf and ndf) When I rebuild this index how will each of these datafiles grow as the rebuild proceeds to completion? Lets for the time being remove the caveats of any other activity hitting the example index/database in question.My tests seem to show that only the mdf will grows (or the file with the lowest id in the that filegroup) provided there is enough space available in that particular file to complete the operation. The secondary ndf dat file doesnt grow at all if the mdf has enough space. Is expected behavior? i.e. the index will be rebuilt in a contiguous manner relative to the files contained with the filegroup i.e. fileid 1 will grow till limit reached then next fileid grows etc? I'm essentially trying to nail down what free space I need in each datafile when doing index maintenance. I understand how much is require overall, just lacking understanding on the distribution of that free space on the data files.Thanks for your time.Charlie
↧