# Compaction for Cassandra

**URL:** <https://community.temporal.io/t/compaction-for-cassandra/3955>\
**Category:** Community Support\
**Tags:** cassandra\
**Created:** [February 10, 2022, 4:36am UTC](https://community.temporal.io/t/compaction-for-cassandra/3955 "2022-02-10T04:36:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridwan.santoso](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@ridwan.santoso](https://community.temporal.io/u/ridwan.santoso)\
**Post date:** [February 10, 2022, 4:36am UTC](https://community.temporal.io/t/compaction-for-cassandra/3955/1 "2022-02-10T04:36:41Z")

</div>

Hi Team,

Would like to ask for suggestion / recommendation for Compaction for Cassandra, what is the default used? and for transaction with more heavy on the read transaction what is the compaction to be used? How about for balanced 50-50 between read and write, what are the compaction to be used?  
Really appreciate your inputs.

Thanks & regards,  
ridwan

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [February 10, 2022, 4:21pm UTC](https://community.temporal.io/t/compaction-for-cassandra/3955/2 "2022-02-10T16:21:01Z")

</div>

I see compaction being defined in the [cassandra schema](https://github.com/temporalio/temporal/blob/master/schema/cassandra/temporal/schema.cql#L66) using [LeveledCompactionStrategy](https://cassandra.apache.org/doc/latest/cassandra/operating/compaction/lcs.html) that seems to be used across the board.

Not an expert on compaction, but will check with the server team and get back to you.
