Skip to content

Commit ff5938c

Browse files
Merge pull request #1035 from Mark-Simulacrum/index
Add an index to lower status page load times
2 parents a3b9c2d + 227fc96 commit ff5938c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

database/src/pool/postgres.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ static MIGRATIONS: &[&str] = &[
202202
alter table rustc_compilation alter column aid set data type integer;
203203
alter table self_profile_query alter column aid set data type integer;
204204
"#,
205+
// For the in_progress_steps() query.
206+
r#"
207+
create index if not exists collector_progress_start_time_step_idx on collector_progress (start_time, step) where start_time is not null and end_time is not null;
208+
"#,
205209
];
206210

207211
#[async_trait::async_trait]

0 commit comments

Comments
 (0)