aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-07-17 12:41:04 +0200
committerTaras Madan <tarasmadan@google.com>2023-07-17 11:32:22 +0000
commit20f8b3c2cf7677e1d13af932607fa6447f144fc6 (patch)
tree93a4462046f6619da8306e6561c1649dcc792090 /dashboard/app/reporting.go
parent4450facd726c71db0be8993c744afe0d70063594 (diff)
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.
Diffstat (limited to 'dashboard/app/reporting.go')
-rw-r--r--dashboard/app/reporting.go2
1 files changed, 1 insertions, 1 deletions
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)