Deployments and config-audit free-text search scan the table (leading-wildcard LIKE) #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Register row 36 (deferred-work register).
Four
LIKE '%term%'predicates inDeploymentManagerRepository(instance name, deployment id, revision hash, user) preclude index seeks;BuildListQueryis shared withGetDeploymentStatusCountsAsync, so one search = two scans. Anchoring was rejected as a contract change (DeploymentListFilter.Searchpromises substring matching). The config-audit viewer filters onAuditLogEntrieshave the same shape.ListInstanceswas fixed to prefix search inbaab6ac7.Revisit trigger (from register): Search latency complaints on the Deployments page or the config audit log.
Current state: Acceptable at purge-bounded row counts; still a scan.
Fix options: renegotiate to prefix on the id/hash legs, or full-text.
Source:
docs/plans/2026-07-08-deferred-work-register.mdrow 36