Class MaintenanceProviderBase
The single implementation of : every provider-specific
difference lives in the SQL the dialect returns, normalized to ONE column-alias contract,
so the subclasses degenerate to wiring their dialect in (same shape as ValidationProvider).
public abstract class MaintenanceProviderBase : IMaintenanceProvider
Inheritance
Implements
Derived
Properties
Context
protected IRedbContext Context { get; }
Logger
protected ILogger? Logger { get; }
Sql
protected ISqlDialect Sql { get; }
Methods
AnalyzeAsync(CancellationToken)
Refreshes the planner statistics of the database (PostgreSQL ANALYZE,
public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default)
AnalyzeTableAsync(string, string?, CancellationToken)
Refreshes the planner statistics of ONE table (PostgreSQL ANALYZE t, MSSQL
public virtual Task AnalyzeTableAsync(string table, string? schema = null, CancellationToken cancellationToken = default)
GetIndexStatsAsync(CancellationToken)
Index statistics of the user tables, read from the database catalogs. Fields the
public virtual Task<IReadOnlyList<IndexStatistics>> GetIndexStatsAsync(CancellationToken cancellationToken = default)
GetStatisticsWindowAsync(CancellationToken)
Since when the usage counters of have been counting,
public virtual Task<StatisticsWindow> GetStatisticsWindowAsync(CancellationToken cancellationToken = default)
GetTableStatsAsync(CancellationToken)
Table statistics of the user tables: size, rows, the size of their indexes, and when
public virtual Task<IReadOnlyList<TableStatistics>> GetTableStatsAsync(CancellationToken cancellationToken = default)