Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I get the compact method to release emptied pages back to the filesystem when using the DB_FREE_SPACE flag?

0
Posted

Why can I get the compact method to release emptied pages back to the filesystem when using the DB_FREE_SPACE flag?

0

If you plan to utilize the compact method with a volatile database, it is recommended that the database reside in its own file. If you have databases x,y,z in a single file and plan to compact database x and free emptied pages to the filesystem it is likely that databases y, z will prevent pages from being freed to the filesystem. If you run compact with the DB_FREE_SPACE flag, emptied pages will still be placed on the free page list, but not freed to the filesystem. To free space from the file there must be free pages at the end of the file and the other databases (y,z) may contain those pages and in particular the meta data pages from those databases can never be freed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.