Tuesday 15 May 2012

The data file size do not shrink down when delete from ravendb -


I have used the following code to remove documents from RavenDB, at the bottom of the raven UI, I can see The number of documents has decreased from 3,00,000 to 2,000,000. But the size of the "data" file does not decrease, it is always about 100g.

  store.DatabaseCommands.DeleteByIndex ("SAGAS / BISTART", new index {query = "STARTED: {00010101000000 TO 20130101000000}",});   

Server Build # 960, Client Build # 960 Please help ...

He is by design that we do not give place back to the OS by default. If we really want to shrink the file size, then we must compact the DB again, but it is offline operation.

No comments:

Post a Comment