Does Sql Server maintain the free space defined by fillfactor? [duplicate]
-
07-03-2021 - |
Pregunta
I'm new to concept of what fillfactor
is and why it is used.
So far, reading this article, I've learned that by setting the fillfactor
configuration of an index, we specify how much space on each page
should remain free, so that whenever a new record needs to be added to a page, there will be some free space for it.
My question is that:
- Is that free space on each page, intended to remain free? I can guess that, that free space is used when an
insert
happens, but later the database engine, moves data, so that again we have some free space in eachpage
. Is this what happens in a DBMS?
Solución
Ni, it isn't maintained. It is there to postpone page splits. But after so many inserts, the page will split. Then it is up to you whether you fell like doing anything about it (rebuild or reorganize).
Licenciado bajo: CC-BY-SA con atribución
No afiliado a dba.stackexchange