pub fn analyze(
actor: Actor,
pool: &State<DbPool>,
) -> Result<(Status, Json<MaintenanceAckDto>), Status>Expand description
Triggers a planner-statistics refresh (ANALYZE over the high-churn tables) as a background job
— keeps the planner’s row estimates current after bulk imports/reruns so it keeps choosing the
right indexes (e.g. the TODO leasing index) instead of waiting for autovacuum (DB
ongoing-maintenance; docs/DB_TUNING.md). Token-gated; returns 202 + the job handle, poll
GET /api/jobs/<job> for per-table progress. Debounced.