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

Unified Diff: appengine/datastorecache/cache.go

Issue 2617903005: Remove dsQueryBatch in favor of ds.Batcher. (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 | appengine/datastorecache/manager.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/datastorecache/cache.go
diff --git a/appengine/datastorecache/cache.go b/appengine/datastorecache/cache.go
index b928686997fba7ecc5149bd3e7d473e567349ab3..92d68051be022973f151230d62df89737c4918b5 100644
--- a/appengine/datastorecache/cache.go
+++ b/appengine/datastorecache/cache.go
@@ -17,6 +17,7 @@ import (
"github.com/luci/luci-go/common/retry"
"github.com/luci/luci-go/server/router"
+ "github.com/luci/gae/impl/prod/constraints"
"github.com/luci/gae/service/datastore"
"github.com/luci/gae/service/info"
@@ -175,7 +176,7 @@ func (cache *Cache) pruneInterval() time.Duration {
func (cache *Cache) manager() *manager {
return &manager{
cache: cache,
- queryBatchSize: managerQueryBatchSize,
+ queryBatchSize: constraints.DS().QueryBatchSize,
}
}
« no previous file with comments | « no previous file | appengine/datastorecache/manager.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698