Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Unified Diff: milo/appengine/buildbot/pubsub.go

Issue 2668763002: Use a datastore batcher for build queries. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« milo/appengine/buildbot/datastore.go ('K') | « milo/appengine/buildbot/master.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/buildbot/pubsub.go
diff --git a/milo/appengine/buildbot/pubsub.go b/milo/appengine/buildbot/pubsub.go
index c12147af74e2d693d7092679271bab5f0bb8e1a7..b9bf2a4643a6565d044ee33802a4545e3c499d45 100644
--- a/milo/appengine/buildbot/pubsub.go
+++ b/milo/appengine/buildbot/pubsub.go
@@ -238,7 +238,7 @@ func doMaster(c context.Context, master *buildbotMaster, internal bool) int {
Eq("finished", false).
Eq("master", master.Name)
builds := []*buildbotBuild{}
- err = ds.GetAll(c, q, &builds)
+ err = getBuildQueryBatcher(c).GetAll(c, q, &builds)
if err != nil {
logging.WithError(err).Errorf(c, "Could not load current builds from master %s",
master.Name)
« milo/appengine/buildbot/datastore.go ('K') | « milo/appengine/buildbot/master.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698