From 2e2147e23a8691c96cb2c2c5cbeae1120f3718c4 Mon Sep 17 00:00:00 2001 From: Z1kkurat Date: Mon, 30 Sep 2024 13:14:50 +0200 Subject: [PATCH] Make keys DDL use LeveledCompactionStrategy by default --- .../scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala b/persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala index 459da3db..2155ed11 100644 --- a/persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala +++ b/persistence-cassandra/src/main/scala/com/evolutiongaming/kafka/flow/key/KeySchema.scala @@ -39,6 +39,7 @@ object KeySchema { |metadata TEXT, |PRIMARY KEY((application_id, group_id, segment), topic, partition, key) |) + |WITH compaction = {'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'} |""".stripMargin ) >> session