feat: add user_id index to profiles table for faster lookups

The migration adds a new database index on the `user_id` column in the `profiles` table to optimize query performance when filtering or joining by user identifier. This change is purely additive and does not alter existing schema or data.
This commit is contained in:
2026-05-28 22:45:07 +00:00
parent 91ccef1053
commit f5f170e3db
10 changed files with 121 additions and 60 deletions
+1 -4
View File
@@ -7,7 +7,7 @@ LOCUST_SPAWN_RATE ?= 5
LOCUST_RUN_TIME ?= 120s
DEVPLACE_RATE_LIMIT ?= 1000000
.PHONY: install dev clean test test-headed demo locust locust-headless
.PHONY: install dev clean test test-headed locust locust-headless
install:
pip install -e .
@@ -24,9 +24,6 @@ test:
test-headed:
PLAYWRIGHT_HEADLESS=0 python -m pytest tests/ -v --tb=line -x
demo:
PLAYWRIGHT_HEADLESS=0 python -m pytest tests/test_demo.py -v -s --tb=line -x
locust:
export DEVPLACE_DATABASE_URL="sqlite:///$(LOCUST_DB)"; \
export DEVPLACE_RATE_LIMIT=$(DEVPLACE_RATE_LIMIT); \