Method RepairBaseIndexesAsync(IReadOnlyCollection<string>?, bool, CancellationToken)
Builds the expected indexes the check finds missing or INVALID (an INVALID one is dropped first); an index
defined otherwise is reported and never touched. names limits it to those indexes.
PostgreSQL builds with CREATE INDEX CONCURRENTLY, so reads and writes go on; SQL Server with ONLINE = ON on
the editions that have it, and on the others builds nothing unless allowOffline is set,
returning the statements instead (an offline build blocks writes to the table while it runs); SQLite builds
plainly. Runs under the schema lock. An explicit act: start-up never builds a missing base index. On SQLite,
before it builds a unique index on the place of a value it looks for places that hold more than one row; such an
index is not built, the places are listed in , nothing is
deleted.
public Task<RedbIndexRepairResult> RepairBaseIndexesAsync(IReadOnlyCollection<string>? names = null, bool allowOffline = false, CancellationToken cancellationToken = default)