Skip to main content

reindex

Function reindex 

Source
pub fn reindex(
    actor: Actor,
    pool: &State<DbPool>,
) -> Result<(Status, Json<MaintenanceAckDto>), Status>
Expand description

Triggers an online index rebuild (REINDEX (CONCURRENTLY) over the high-churn tables) as a background job — index bloat slows scans over time, and this rebuilds without an exclusive lock (DB ongoing-maintenance; docs/DB_TUNING.md). Token-gated; returns 202 + the job handle, poll GET /api/jobs/<job> for per-table progress. Debounced.