1

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?

0

2 Answers 2

7

Yes, each update is smaller, so memtables take more time to fill, and compaction happens less frequently.

0

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.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.