diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-07-17 12:41:04 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2023-07-17 11:32:22 +0000 |
| commit | 20f8b3c2cf7677e1d13af932607fa6447f144fc6 (patch) | |
| tree | 93a4462046f6619da8306e6561c1649dcc792090 /dashboard/app/reporting.go | |
| parent | 4450facd726c71db0be8993c744afe0d70063594 (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.go | 2 |
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) |
