fix(packaging): index projects.name for the journals trigger #21020
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 259 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #21020"
general
weight: 0.35
JacobCoffee
gunicorn --workers 1 --timeout 60. (numbers below)- Before Index: gunicorn timed out after 60s, user was not deleted (prod shows 503).
- After Index: user was deleted, and redirected to
/(303 -> 200).Prior work
#4958 - 2018 switch to UUID primary keys (among others)
#19055 - one bulk
UPDATE#19056 - indexed
journals(name, id DESC), which doesn't help theprojectslookupProblem
deleted-user(#19055)update_project_last_serialtrigger runsUPDATE projects ... WHERE projects.name = ...once per row.projects.namehas had no index since#4958-migration ee5b8f66a223.- A delete pays that for every journal row the user ever wrote
- 4706 rows for
girder-robotis about 220sSome numbers
Measured on a local copy with 946k projects and journal rows shaped like the affected accounts. Each run timed the
UPDATE.| Journal rows | Before | After |
|---|---|---|
| 4,706 (girder-robot) | 208.5s | 0.3s |
| 2,198 (lcctoor) | 96.8s | 0.1s |
These are from production
Follow up (mentioning in case we decide to pursue)
journals_name_idx(457 MB) may be redundant,journals_name_id_idxfrom#19056starts with the same column (yet to fully verify this).