Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c9ad14

Browse files
committed
add index on workspace build initiator ID
Signed-off-by: Callum Styan <callumstyan@gmail.com>
1 parent4811c58 commit6c9ad14

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Remove index on workspace_builds.initiator_id
2+
DROPINDEX IF EXISTS idx_workspace_builds_initiator_id;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Add index on workspace_builds.initiator_id to optimize prebuild queries
2+
-- This will dramatically improve performance for:
3+
-- - GetPrebuildMetrics (called every 15 seconds)
4+
-- - Any other queries using workspace_prebuild_builds view
5+
-- - Provisioner job queue prioritization
6+
CREATEINDEXidx_workspace_builds_initiator_idON workspace_builds (initiator_id);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp