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-11 23:35:31 +00:00
parent 7229e2e64e
commit 56da963440
55 changed files with 5563 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# style report (check)
- total: 11
- errors: 6
- warnings: 0
- fixed: 0
- unfixed: 11
## Findings
### agents/agent.py
- [error] no-em-dash:30: Em-dash character (U+2014) used in comment text instead of a hyphen.
- [error] no-em-dash:1732: Em-dash character (U+2014) used in advice string literal instead of a hyphen.
- [error] no-em-dash:2217: Em-dash character (U+2014) used in comment text instead of a hyphen.
- [error] no-em-dash:2250: Em-dash character (U+2014) used in f-string instead of a hyphen.
- [error] no-em-dash:2293: Em-dash character (U+2014) used in argparse description string instead of a hyphen.
### devplace.md
- [info] no-em-dash:1: Documentation file devplace.md uses em-dash characters throughout (standard English prose, not code).
### devplacepy/services/bot/llm.py
- [error] no-em-dash:105: Em-dash character (U+2014) used in string literal for text.replace() instead of a hyphen or escape sequence.
### notifs.md
- [info] no-em-dash:256: Documentation file notifs.md uses em-dash characters throughout (standard English prose, not code).
### review.md
- [info] no-em-dash:1: Documentation file review.md uses em-dash characters throughout (standard English prose, not code).
### tests/test_demo.py.bak
- [info] no-em-dash:36: Backup test file contains 15 em-dash characters (U+2014) in comments and string literals.
### visuals.md
- [info] no-em-dash:8: Documentation file visuals.md uses em-dash characters throughout (standard English prose, not code).