If a class contains dynamically extended components (i.e. fields of type
string,vector,varbinaryandsequence), an object of this class that is frequently updated can develop memory holes. To prevent this kind of fragmentation, an automatic de-fragmentation (auto_compactmode) feature is provided via a database parameterautocompact_threshold.If the size of an object exceeds this
autocompact_thresholdvalue, then the automatic de-fragmentation algorithm reallocates objects, eliminating any internal fragmentation.