Closed xirc closed 1 year ago
For #201
CassandraPersistenceQueries.currentEventsBefore iterates events on all partitions (from + 1 to 0) but can skip deleted partitions by using the highest deleted sequence number (callled deleted_to), which reduces some read-events queries.
CassandraPersistenceQueries.currentEventsBefore
from + 1
deleted_to
CassandraPersistenceQueries.currentEventsBefore: https://github.com/lerna-stack/akka-entity-replication/blob/1afe7992952c33b708809559b02eacf44f96dd77/rollback-tool-cassandra/src/main/scala/lerna/akka/entityreplication/rollback/cassandra/CassandraPersistenceQueries.scala#L177-L189
CassandraPersistenceQueries can fetch the highest deleted sequence number (called deleted_to) from the metadata table (akka.metadata).
CassandraPersistenceQueries
akka.metadata
deleted_to is described as:
For #201
CassandraPersistenceQueries.currentEventsBefore
iterates events on all partitions (from + 1
to 0) but can skip deleted partitions by using the highest deleted sequence number (callleddeleted_to
), which reduces some read-events queries.CassandraPersistenceQueries.currentEventsBefore
: https://github.com/lerna-stack/akka-entity-replication/blob/1afe7992952c33b708809559b02eacf44f96dd77/rollback-tool-cassandra/src/main/scala/lerna/akka/entityreplication/rollback/cassandra/CassandraPersistenceQueries.scala#L177-L189CassandraPersistenceQueries
can fetch the highest deleted sequence number (calleddeleted_to
) from the metadata table (akka.metadata
).deleted_to
is described as: