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 c799d67 commit 6a6dadbCopy full SHA for 6a6dadb
database/src/pool/postgres.rs
@@ -391,7 +391,13 @@ static MIGRATIONS: &[&str] = &[
391
// of requests grows to make things fast we need an index on the completed_at
392
r#"
393
CREATE INDEX IF NOT EXISTS benchmark_request_completed_idx ON benchmark_request(completed_at);
394
- "#
+ "#,
395
+ // Artifacts table grows massively and we do a join on artifacts.id = error.aid.
396
+ // Thus error.aid needs an index to filter errors for an artifact without
397
+ // a full table scan
398
+ r#"
399
+ CREATE INDEX IF NOT EXISTS error_aid_idx ON error(aid);
400
401
];
402
403
#[async_trait::async_trait]
0 commit comments