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

Unified Diff: milo/appengine/buildbot/console.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
Index: milo/appengine/buildbot/console.go
diff --git a/milo/appengine/buildbot/console.go b/milo/appengine/buildbot/console.go
index e1b45b92839b61d62fd9fdc9a283440f32c2ff6d..b77d6a4bbe3ff42fa80c29d3a17ca980e9c2112c 100644
--- a/milo/appengine/buildbot/console.go
+++ b/milo/appengine/buildbot/console.go
@@ -28,7 +28,7 @@ func getFullBuilds(c context.Context, masterName, builderName string, finished b
q = q.Order("-number")
q.Finalize()
buildbots := make([]*buildbotBuild, 0, 25)
- err := ds.GetAll(c, q, &buildbots)
+ err := getBuildQueryBatcher(c).GetAll(c, q, &buildbots)
return buildbots, err
}

Powered by Google App Engine
This is Rietveld 408576698