Reputation: 626
I have a table which has a lot of columns.
Does the database need fewer compactions if only partial columns are updated compared with that all columns are updated?
Upvotes: 1
Views: 65
Reputation: 1410
Yes, each update is smaller, so memtables take more time to fill, and compaction happens less frequently.
Upvotes: 7
Reputation: 2310
Compactions depend on the strategy you have defined. In case of STCS and LCS lesser updates means less data and hence less compactions. For TWCS, compactions depend on time window you have defined.
Upvotes: 0