Skip to content

Commit

Permalink
Remove timebucket from clustering column, #399
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
patriknw committed Apr 6, 2020
1 parent 717f7a4 commit 1957a2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import akka.persistence.cassandra.FutureDone
| meta_ser_manifest text,
| meta blob,
| tags set<text>,
| PRIMARY KEY ((persistence_id, partition_nr), sequence_nr, timestamp, timebucket))
| PRIMARY KEY ((persistence_id, partition_nr), sequence_nr, timestamp))
| WITH gc_grace_seconds =${journalSettings.gcGraceSeconds}
| AND compaction = ${indent(journalSettings.tableCompactionStrategy.asCQL, " ")}
""".stripMargin.trim
Expand Down

0 comments on commit 1957a2e

Please sign in to comment.