Migrates the given persistenceIds from the messages
table to the
new tags_view
table.
Migrates the given persistenceIds from the messages
table to the
new tags_view
table. tag_view
table must exist before calling this
and can be created manually or via [createTagsTable]
This is useful if there there is a more efficient way of getting all the
persistenceIds than [CassandraReadJournal.currentPersistenceIds] which does
a distinct query on the messages
table.
This can also be used to do partial migrations e.g. test a persistenceId in production before migrating everything.
It is recommended you use this if the messages
table is large.
PersistenceIds to migrate
A Future that completes when the migration is complete
Migrates the entire messages
table to the the new tag_views
table.
Migrates the entire messages
table to the the new tag_views
table.
Uses [CassandraReadJournal.currentPersistenceIds] to find all persistenceIds. Note that this is a very inefficient cassandra query so might timeout. If so the version of this method can be used where the persistenceIds are provided.
A Future that completes when the migration is complete.