Class IndexAdvice
Reads a set of index statistics and points out what an operator could act on. Three rules only, and all
three refuse to speak about an index the engine depends on.
The refusal is the point. An index that holds a primary key, a uniqueness constraint or a foreign key —
and every index of redb's own tables — reads zero because it enforces something, not because nobody needs
it. Dropping one on that evidence breaks the database, so IsSystemCritical from the engine
ends every rule before it starts.
public static class IndexAdvice
Inheritance
Methods
Collect(IReadOnlyList<RedbIndexInfo>?, bool)
Collects the remarks. countersAreMeaningful is false when the engine keeps no usage
public static IReadOnlyList<IndexAdviceItem> Collect(IReadOnlyList<RedbIndexInfo>? indexes, bool countersAreMeaningful)