- Notifications
You must be signed in to change notification settings - Fork928
Commitde32125
committed
fix(coderd/database): add fk index for
I noticed we were missing this index while looking at queryperformances, we were doing sequential scans on the table via the`GetWorkspaceAgentScriptsByAgentIDs` query, which is relatively fastwhilst the table is small, but at 8.5k calls/hour in our dogfoodinstance, it will become problematic eventually.workspace_agent_scripts
1 parentd734f3f commitde32125
File tree
2 files changed
+4
-0
lines changed- coderd/database/migrations
2 files changed
+4
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)