Method DropLoadIndexesAsync(CancellationToken)
Disables the secondary indexes of the large tables and returns the statements that rebuild them.
A disabled index keeps its definition in the catalog, so nothing has to be stored elsewhere and
a run that died half-way loses nothing: the next call finds the indexes still disabled and
returns them with the rest. Left alone: the clustered index (disabling it takes the table
offline), indexes that back a PRIMARY KEY or UNIQUE constraint, and any index a foreign key
resolves through (disabling it would disable that foreign key).
public Task<IReadOnlyList<DroppedIndex>> DropLoadIndexesAsync(CancellationToken ct = default)