Skip to content

Commit dbfe582

Browse files
committed
modify the index based off the investigations into what seems to work best
1 parent cac2e28 commit dbfe582

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ static MIGRATIONS: &[&str] = &[
299299
backends TEXT NOT NULL,
300300
profiles TEXT NOT NULL
301301
);
302-
CREATE INDEX IF NOT EXISTS benchmark_request_status_idx on benchmark_request (status);
303-
CREATE INDEX IF NOT EXISTS benchmark_request_commit_type on benchmark_request (commit_type);
302+
CREATE INDEX IF NOT EXISTS benchmark_request_status_idx on benchmark_request (status) WHERE status != 'completed';
304303
"#,
305304
];
306305

0 commit comments

Comments
 (0)