Commit 836370c
committed
fix(coderd/database): add index on workspace_app_statuses.app_id
The queries GetWorkspaceAppStatusesByAppIDs and
GetLatestWorkspaceAppStatusByAppID both filter by app_id but there
was no index to support this, causing sequential scans.
Refs https://www.notion.so/coderhq/2k-Task-Status-Updates-retest-2bfd579be59280ca8f86eb376d05e0fa1 parent 6aeb144 commit 836370c
File tree
3 files changed
+4
-0
lines changed- coderd/database
- migrations
3 files changed
+4
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments