From 20f8b3c2cf7677e1d13af932607fa6447f144fc6 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Mon, 17 Jul 2023 12:41:04 +0200 Subject: dashboard/app: increase batch size to 2000 We have 1014 unfixed /upstream bugs. Increasing batch size 2* we'll improve answer latency for the /upstream page. --- dashboard/app/reporting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard/app/reporting.go') diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index 0db180afb..a1d916fbb 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -733,7 +733,7 @@ func loadOpenBugs(c context.Context) ([]*Bug, []*db.Key, error) { } func foreachBug(c context.Context, filter func(*db.Query) *db.Query, fn func(bug *Bug, key *db.Key) error) error { - const batchSize = 1000 + const batchSize = 2000 var cursor *db.Cursor for { query := db.NewQuery("Bug").Limit(batchSize) -- cgit mrf-deployment