Class RedbIndexInfo

Assembly: redb.Tsak.Contracts.dll

One index as the database catalogs report it. Null means the engine does not say.

public sealed record RedbIndexInfo : IEquatable<RedbIndexInfo>

Inheritance

Object→RedbIndexInfo

Implements

Properties

BacksForeignKey

Whether a foreign key relies on the index.

public bool BacksForeignKey { get; init; }

Columns

Key columns, in index order.

public IReadOnlyList<string> Columns { get; init; }

CriticalReason

Why the index is critical: RedbMetadata, RedbSecurity, RedbData, PrimaryKey, Unique, ForeignKey or None.

public string CriticalReason { get; init; }

EstimatedRows

Row estimate of the index.

public long? EstimatedRows { get; init; }

IncludedColumns

Columns carried but not keyed on (SQL Server), which is what makes an index covering.

public IReadOnlyList<string> IncludedColumns { get; init; }

IsClustered

Whether the index is clustered (SQL Server).

public bool? IsClustered { get; init; }

IsPrimaryKey

Whether the index backs the primary key.

public bool IsPrimaryKey { get; init; }

IsRedbOwned

Whether the index belongs to a table of redb itself.

public bool IsRedbOwned { get; init; }

IsSystemCritical

Whether removing the index would break the engine or a constraint. Such an index is shown and never

public bool IsSystemCritical { get; init; }

IsUnique

Whether the index is unique.

public bool? IsUnique { get; init; }

IsUniqueConstraint

Whether the index enforces a uniqueness constraint.

public bool IsUniqueConstraint { get; init; }

LastUsed

When the index last served a read.

public DateTimeOffset? LastUsed { get; init; }

Name

Index name.

public string Name { get; init; }

Scans

Range and full scans, where the engine splits the counter.

public long? Scans { get; init; }

Schema

Schema of the table; null on an engine without schemas.

public string? Schema { get; init; }

Seeks

Point lookups; on PostgreSQL the engine's single combined scan counter.

public long? Seeks { get; init; }

SizeBytes

On-disk size.

public long? SizeBytes { get; init; }

Table

Table the index belongs to.

public string Table { get; init; }

Updates

Maintenance writes into the index (SQL Server).

public long? Updates { get; init; }