Skip to content

Commit 982c8e5

Browse files
committed
Remove timebucket from clustering column, #399
* originally there because of the materialized view * for old table definitions it must be set * would be difficult to remove it entirely from the table because then we would have to maintain two different insert statements depending on if the table defined the column or not, meaning that we would have to do some fake query when starting up to check if the column is defined
1 parent 36cc94c commit 982c8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/akka/persistence/cassandra/journal/CassandraJournalStatements.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import akka.persistence.cassandra.FutureDone
5050
| meta_ser_manifest text,
5151
| meta blob,
5252
| tags set<text>,
53-
| PRIMARY KEY ((persistence_id, partition_nr), sequence_nr, timestamp, timebucket))
53+
| PRIMARY KEY ((persistence_id, partition_nr), sequence_nr, timestamp))
5454
| WITH gc_grace_seconds =${journalSettings.gcGraceSeconds}
5555
| AND compaction = ${indent(journalSettings.tableCompactionStrategy.asCQL, " ")}
5656
""".stripMargin.trim

0 commit comments

Comments
 (0)