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 7, 2020
1 parent 36cc94c commit 982c8e5
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 982c8e5

Please sign in to comment.