perf(coderd/database): add index on workspace_app_statuses.app_id (#21099)

This commit is contained in:
Mathias Fredriksson
2025-12-04 17:56:13 +02:00
committed by GitHub
parent d9159103cd
commit cfdd4a9b88
6 changed files with 9 additions and 3 deletions
@@ -0,0 +1 @@
DROP INDEX IF EXISTS workspace_app_statuses_app_id_idx;
@@ -0,0 +1 @@
CREATE INDEX workspace_app_statuses_app_id_idx ON workspace_app_statuses (app_id, created_at DESC);