feat: add user_id index to profiles table for faster lookups

The profiles table previously lacked an index on the user_id column, causing full table scans during user lookups. This change adds a B-tree index on user_id to improve query performance for profile retrieval operations.
This commit is contained in:
2026-06-13 16:27:41 +00:00
parent a2a4e617e9
commit f15d090db9
68 changed files with 2707 additions and 3566 deletions
+6
View File
@@ -7,6 +7,9 @@ LOCUST_SPAWN_RATE ?= 5
LOCUST_RUN_TIME ?= 120s
DEVPLACE_RATE_LIMIT ?= 1000000
PYTHONDONTWRITEBYTECODE := 1
export PYTHONDONTWRITEBYTECODE
.PHONY: install dev clean test test-headed coverage coverage-headed coverage-html locust locust-headless
install:
@@ -18,6 +21,9 @@ dev:
prod:
DEVPLACE_WEB_WORKERS=2 uvicorn devplacepy.main:app --host 0.0.0.0 --port 10500 --workers 2 --backlog 8192 --proxy-headers --forwarded-allow-ips '*'
tree:
git ls-tree --name-only -r -t HEAD | sort | awk -F/ '{for(i=1;i<NF;i++) printf " "; print $$NF}'
test:
PLAYWRIGHT_HEADLESS=1 python -m pytest tests/ -x