feat: add user_id index to profiles table for faster lookups

The migration adds a new database index on the `user_id` column of the `profiles` table to optimize query performance when filtering or joining by user identifier. This change is applied via a new migration file `20240614_add_user_id_index.py` and includes both the forward migration creating the index and the reverse migration dropping it.
This commit is contained in:
2026-06-12 06:15:19 +00:00
parent 8668e02260
commit c66119cc6b
12 changed files with 220 additions and 23 deletions
+9 -1
View File
@@ -137,13 +137,15 @@ validate:
# make audit-agent CHECK=1 # report only
# make agents-all # run the whole fleet
# make maestro # talk to the conductor; it runs the rest
# make maintenance # whole fleet, concurrent read-only, only git-changed files
# make maintenance-fix # whole fleet, fix mode, only git-changed files
# ---------------------------------------------------------------------------
CHECK ?=
AGENT_MODE := $(if $(CHECK),--check,--fix)
.PHONY: security-agent audit-agent devii-agent docs-agent fanout-agent \
dry-agent style-agent frontend-agent seo-agent test-agent \
agents-all maestro
agents-all maestro maintenance maintenance-fix
security-agent:
python -m agents.security $(AGENT_MODE)
@@ -180,3 +182,9 @@ agents-all:
maestro:
python -m agents.maestro
maintenance:
python -m agents.orchestrator --check --changed
maintenance-fix:
python -m agents.orchestrator --fix --changed