Jump to content
altenbernd

Optimize Question

Recommended Posts

I've recently noticed that optimize is freeing up space when I don't think it should be.

 

I run optimize, which frees up some space. This is expected.

 

Then I run VFI and find no errors.

 

I run optimize again and free up some space.

 

I run it again and the difference is 0.

 

I run VFI again with no errors.

 

Run Optimize and the difference is 110, 671 bytes.

 

I can keep toggling between the VFI and the optimize. The optimize difference is 110,671 each time.

 

Is it normal for VFI to do something that would release some space even though it didn't identify any errors? Is this cause for concern? I haven't noticed any other problems, but I don't want to ignore this and then discover I have something corrupted in my database.

 

Thanks,

 

Sheila Altenbernd

Share this post


Link to post
Share on other sites

You are making the assumption that Optimize is removing space from the data tables which is not necessarily the case.

 

VFI 'fattens' the tables or indexes when it is running. Optimize removes that. Almost all of the space that Optimize removes is coming from the indexes. You have no idea how much (or if any) space Optimize removes from the data tables.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×