Table of Contents

Method PruneAsync

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

PruneAsync(IngestionSource, string?, CancellationToken)

Full enumeration and sweep, no write phase. The answer to "a budgeted run never prunes" (spec 9.6).

Task<int> PruneAsync(IngestionSource source, string? collectionName = null, CancellationToken cancellationToken = default)

Parameters

source IngestionSource

The source whose live document ids define what is NOT stale.

collectionName string

Null resolves to the single configured collection.

cancellationToken CancellationToken

Cancels the sweep.

Returns

Task<int>

The number of documents pruned.