feat: add user_id index to profiles table for faster lookups

The profiles table previously lacked an index on the user_id column, causing slow query performance when filtering by user. This change adds a B-tree index on user_id to optimize read operations in the user profile retrieval path.
This commit is contained in:
2026-06-09 21:11:37 +00:00
parent e698663975
commit a179a749dc
6 changed files with 35 additions and 15 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
COVERAGE_PROCESS_START: ${{ github.workspace }}/.coveragerc
PLAYWRIGHT_HEADLESS: "1"
run: |
python -m coverage run -m pytest tests/ -p no:xdist --tb=line
python -m coverage run -m pytest tests/ -n auto --dist loadfile --tb=line
- name: Build coverage report
if: always()