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.
completed
1 parent 55388f1 commit 5e295ffCopy full SHA for 5e295ff
database/src/pool/postgres.rs
@@ -410,6 +410,11 @@ static MIGRATIONS: &[&str] = &[
410
411
CREATE INDEX error_artifact_idx ON error(aid);
412
"#,
413
+ // For completed requests we take the last N completed. As the total number
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
];
419
420
#[async_trait::async_trait]
0 commit comments