diff --git a/cmd/acb-index-builder/main.go b/cmd/acb-index-builder/main.go index ff6d0b7..1551315 100644 --- a/cmd/acb-index-builder/main.go +++ b/cmd/acb-index-builder/main.go @@ -356,6 +356,7 @@ func fetchRecentMatchIDs(ctx context.Context, db *sql.DB, since time.Duration) ( WHERE status = 'completed' AND completed_at > NOW() - $1::interval ORDER BY completed_at DESC + LIMIT 5000 ` intervalStr := fmt.Sprintf("%.0f seconds", since.Seconds())