wire-subsystems-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.IndexedUserStore.Bulk

Synopsis

Documentation

expectedMigrationVersion :: MigrationVersion Source #

Increase this number any time you want to force reindexing.

data IndexedUserStoreBulk m a where Source #

Bulk operations, must not be used from any web handler

Constructors

SyncAllUsers :: IndexedUserStoreBulk m ()

Only changes data if it is not updated since last update, use when users need to be synced because of an outage, or migrating to a new ES instance.

ForceSyncAllUsers :: IndexedUserStoreBulk m ()

Overwrite all users in the ES index, use it when trying to fix some inconsistency or while introducing a new field in the mapping.

MigrateData :: IndexedUserStoreBulk m () 

forceSyncAllUsers :: forall r. Member IndexedUserStoreBulk r => Sem r () Source #

Overwrite all users in the ES index, use it when trying to fix some inconsistency or while introducing a new field in the mapping.

syncAllUsers :: forall r. Member IndexedUserStoreBulk r => Sem r () Source #

Only changes data if it is not updated since last update, use when users need to be synced because of an outage, or migrating to a new ES instance.