Browse Source

Temporarily limit rustc commits

We're encountering trouble returning all of the commits (~800 currently), so
limit to a smaller subset.
Mark Rousskov 4 years ago
parent
commit
1a9cb03bd0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/db/rustc_commits.rs

+ 1 - 1
src/db/rustc_commits.rs

@@ -27,7 +27,7 @@ pub async fn get_commits_with_artifacts(db: &DbClient) -> anyhow::Result<Vec<Com
         select sha, parent_sha, time
         from rustc_commits
         where time >= current_date - interval '168 days'
-        order by time desc;",
+        order by time desc limit 50;",
             &[],
         )
         .await