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
+27
View File
@@ -0,0 +1,27 @@
# style report (fix)
- total: 7
- errors: 5
- warnings: 0
- fixed: 5
- unfixed: 2
## Findings
### agents/agent.py
- [fixed] no-em-dash:30: Em-dash character (U+2014) used instead of hyphen in docstring
fix: Replaced em-dash with hyphen in docstring about Chrome-accurate header order
- [fixed] no-em-dash:1732: Em-dash character (U+2014) used instead of hyphen in advice string literal
fix: Replaced em-dash with hyphen in plan confidence advice string
- [fixed] no-em-dash:2217: Em-dash character (U+2014) used instead of hyphen in SYSTEM_PROMPT string
fix: Replaced em-dash with hyphen in operating protocol text
- [fixed] no-em-dash:2250: Em-dash character (U+2014) used instead of hyphen in _with_datetime() f-string
fix: Replaced em-dash with hyphen in datetime message string
- [fixed] no-em-dash:2293: Em-dash character (U+2014) used instead of hyphen in argparse description
fix: Replaced em-dash with hyphen in argument parser description
### devplacepy/services/bot/llm.py
- [info] no-em-dash:105: Em-dash characters in llm.py replace() pattern are intentional data processing logic; not changed
### devplacepy/static/uploads/attachments/1a/64/1a640917-f599-4fce-8dc4-2babdb25f716.py
- [info] no-em-dash:3: Em-dash in user-uploaded attachment file; not project source