We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e295ff commit f936848Copy full SHA for f936848
database/src/pool/postgres.rs
@@ -414,7 +414,13 @@ static MIGRATIONS: &[&str] = &[
414
// of requests grows to make things fast we need an index on the completed_at
415
r#"
416
CREATE INDEX IF NOT EXISTS benchmark_request_completed_idx ON benchmark_request(completed_at);
417
- "#
+ "#,
418
+ // Artifacts table grows massively and we do a join on artifacts.id = error.aid.
419
+ // Thus error.aid needs an index to filter errors for an artifact without
420
+ // a full table scan
421
+ r#"
422
+ CREATE INDEX IF NOT EXISTS error_aid_idx ON error(aid);
423
424
];
425
426
#[async_trait::async_trait]
0 commit comments