drupflare/worker - v1.0.4
    Preparing search index...

    Type Alias SweepDeps

    what sweepStep() reads from the object

    type SweepDeps = {
        batch: number;
        generation: number;
        hits: ReadonlyMap<string, number> | undefined;
        isUnstorable: (path: string) => boolean;
        maxPerKind?: number;
        meters: SweepMeters;
        nowMs: number;
        rowsFraction?: number;
        sql: SweepSql;
    }
    Index
    batch: number

    fillBatchSize(env); one step queues at most one batch

    generation: number
    hits: ReadonlyMap<string, number> | undefined

    the per-path view counts the object keeps in memory; undefined when it has none yet

    isUnstorable: (path: string) => boolean

    this.isUnstorable, so the terminating observation is read rather than re-derived

    maxPerKind?: number
    meters: SweepMeters
    nowMs: number
    rowsFraction?: number