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:
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"agent": "style",
|
||||
"mode": "check",
|
||||
"started_at": "2026-06-12T01:05:50.761027",
|
||||
"finished_at": "2026-06-12T01:07:16.324649",
|
||||
"summary": {
|
||||
"total": 11,
|
||||
"errors": 6,
|
||||
"warnings": 0,
|
||||
"fixed": 0,
|
||||
"unfixed": 11
|
||||
},
|
||||
"findings": [
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "agents/agent.py",
|
||||
"line": 30,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in comment text instead of a hyphen.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "agents/agent.py",
|
||||
"line": 1732,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in advice string literal instead of a hyphen.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "agents/agent.py",
|
||||
"line": 2217,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in comment text instead of a hyphen.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "agents/agent.py",
|
||||
"line": 2250,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in f-string instead of a hyphen.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "agents/agent.py",
|
||||
"line": 2293,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in argparse description string instead of a hyphen.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "error",
|
||||
"dimension": "em-dash",
|
||||
"file": "devplacepy/services/bot/llm.py",
|
||||
"line": 105,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Em-dash character (U+2014) used in string literal for text.replace() instead of a hyphen or escape sequence.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"dimension": "em-dash",
|
||||
"file": "tests/test_demo.py.bak",
|
||||
"line": 36,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Backup test file contains 15 em-dash characters (U+2014) in comments and string literals.",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"dimension": "em-dash",
|
||||
"file": "review.md",
|
||||
"line": 1,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Documentation file review.md uses em-dash characters throughout (standard English prose, not code).",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"dimension": "em-dash",
|
||||
"file": "notifs.md",
|
||||
"line": 256,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Documentation file notifs.md uses em-dash characters throughout (standard English prose, not code).",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"dimension": "em-dash",
|
||||
"file": "devplace.md",
|
||||
"line": 1,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Documentation file devplace.md uses em-dash characters throughout (standard English prose, not code).",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
},
|
||||
{
|
||||
"severity": "info",
|
||||
"dimension": "em-dash",
|
||||
"file": "visuals.md",
|
||||
"line": 8,
|
||||
"rule": "no-em-dash",
|
||||
"message": "Documentation file visuals.md uses em-dash characters throughout (standard English prose, not code).",
|
||||
"fixed": false,
|
||||
"fix_summary": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user