Class TableStatistics
One table as the database catalog sees it. Nullable in the same spirit as
: what the engine does not report stays null.
public class TableStatistics
Inheritance
Properties
DataSizeBytes
Size of the table's own data in bytes; null when unavailable.
public long? DataSizeBytes { get; set; }
DeadRows
Rows dead but not yet reclaimed (PostgreSQL); null elsewhere.
public long? DeadRows { get; set; }
HasStatistics
Whether the engine holds any statistics for this table at all. SQLite records no
public bool? HasStatistics { get; set; }
IndexesSizeBytes
Total size of the table's indexes in bytes; null when unavailable.
public long? IndexesSizeBytes { get; set; }
IsRedbOwned
The table belongs to the redb schema (a name starting with '_').
public bool IsRedbOwned { get; set; }
LastAnalyze
When statistics of this table were last refreshed by an explicit request; null when the engine does not record it.
public DateTimeOffset? LastAnalyze { get; set; }
LastAutoAnalyze
When the engine refreshed them on its own (PostgreSQL autoanalyze); null elsewhere.
public DateTimeOffset? LastAutoAnalyze { get; set; }
LastVacuum
When dead rows were last reclaimed (PostgreSQL vacuum); null elsewhere.
public DateTimeOffset? LastVacuum { get; set; }
Schema
Schema of the table; null on engines without schemas (SQLite).
public string? Schema { get; set; }