You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a per-table warmup primitive to help operate chaindata >> RAM:
- kv.RoDB.WarmupTable(ctx, table) and kv.TemporalRoDB.Warmup(ctx, force);
mdbx impl scans the table with parallel prefix reads, gated by
dbg.WarmupTableWorkers (env WARMUP_TABLE_WORKERS, default 0 = disabled).
gatedRoDB.WarmupTable is a no-op: warmup's long-lived readers are exactly
what the gate keeps off the commit path.
- domain/inverted-index collate+prune fire a fire-and-forget WarmupTable on
the table they are about to read (skipped when the Aggregator-set db is nil,
e.g. standalone test instances).
- backup.ClearTables and Kv2kv warm each table while clearing/copying it via a
warmupWhile helper that cancels the warmup as soon as the operation returns.
ClearTables/ResetSenders gain a db arg; backup.ReadAheadThreads is replaced by
dbg.WarmupTableWorkers.
0 commit comments