XML Configuration Reference : Consolidation : SlotsLogSizeBasedCompactPolicy
 
SlotsLogSizeBasedCompactPolicy
com.exalead.mercury.mami.indexing.v10.SlotsLogSizeBasedCompactPolicy
A CompactPolicy that tries to compact slots into levels of exponentially increasing size, where each level has fewer slots than the value of the compact factor. Whenever extra slots (beyond the compact factor upper bound) are encountered, all slots within the level are compacted.
Parent elements:
com.exalead.mercury.mami.indexing.v10.CompactPolicies (as CompactPolicies)
Attributes:
Name
Type
Default value
Description
component
string
compactFactor
int
10
Determines how often slots are compacted. With smaller values, less RAM is used while indexing, and searches on unoptimized indices are faster, but indexing speed is slower. With larger values, more RAM is used during indexing, and while searches on unoptimized indices are slower, indexing is faster. Thus larger values (greater than 10) are best for batch index creation, and smaller values (lower than 10) for indices that are interactively maintained.
minSize
long
1048576
A size setting type which sets the minimum size for the lowest level slots. Slots below this size are considered to be on the same level (even if they vary drastically in size) and will be merged whenever there are mergeFactor for them. This effectively truncates the "long tail" of small slots that would otherwise be created into a single level. If you set this too large, it can greatly increase the merging cost during indexing (if you flush many small slots).
maxSize
long
9223372036854775807
A size setting type which sets the largest slot that may be merged with other segments.
Nested elements:
Name
Type
Description
FullCompactPolicy
com.exalead.mercury.mami.indexing.v10.FullCompactPolicy