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 60d24c9 commit c799d67Copy full SHA for c799d67
database/src/pool/postgres.rs
@@ -387,6 +387,11 @@ static MIGRATIONS: &[&str] = &[
387
r#"
388
ALTER TABLE collector_config ADD COLUMN commit_sha TEXT NULL;
389
"#,
390
+ // For completed requests we take the last N completed. As the total number
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
];
396
397
#[async_trait::async_trait]
0 commit comments