You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Enhancement] Make pk table compaction's rowset size threshold large and configurable (#23843)
If size of PK tablets' rowset is greater than 32M(currently fixed value)
and there are no deletes on the rowsets, these rowsets won't selected
for compaction, for table's with very large rows(some column is very
large while most columns are small), a rowset may contain very few
rows(e.g 32M bytes, each row 16K, so only 2000 row per file), this is
inefficient for scan of small columns.
This PR makes the rowset selection threshold configurable, by adding a
new config `update_compaction_size_threshold`(default now 256M vs
original 32M), rowsets whose size below this size will be selected for
compaction.
Note this PR changes compaction behavior, after this PR, some previously
uncompacted rowsets will be compacted, which may increase compaction
load.
(cherry picked from commit 89d4c37)
Signed-off-by: Binglin Chang <[email protected]>
0 commit comments