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

Unified Diff: milo/appengine/buildbot/builder.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
« no previous file with comments | « no previous file | milo/appengine/buildbot/console.go » ('j') | milo/appengine/buildbot/datastore.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/buildbot/builder.go
diff --git a/milo/appengine/buildbot/builder.go b/milo/appengine/buildbot/builder.go
index 1231693597466c8f37c7716e72faef2be4c67316..f51d425c2041f385e79cf91269a59ac6a61816bf 100644
--- a/milo/appengine/buildbot/builder.go
+++ b/milo/appengine/buildbot/builder.go
@@ -67,7 +67,7 @@ func getBuilds(
}
q = q.Order("-number")
buildbots := []*buildbotBuild{}
- err := ds.GetAll(c, q, &buildbots)
+ err := getBuildQueryBatcher(c).GetAll(c, q, &buildbots)
if err != nil {
return nil, err
}
« no previous file with comments | « no previous file | milo/appengine/buildbot/console.go » ('j') | milo/appengine/buildbot/datastore.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698