mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Add loadWithMemcache() to Ofy
Also clean up some minor uses of load() to standardize calls. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154067731
This commit is contained in:
parent
c1643fa3cd
commit
c596d23523
2 changed files with 24 additions and 6 deletions
|
@ -136,7 +136,7 @@ public final class DeleteOldCommitLogsAction implements Runnable {
|
|||
|
||||
private boolean doesEnoughDataExistThatThisTaskIsWorthRunning() {
|
||||
int tenth = Math.max(1, maxDeletes / 10);
|
||||
int count = queryManifests(ofy.loadEventuallyConsistent())
|
||||
int count = queryManifests(ofy.load())
|
||||
.limit(tenth)
|
||||
.count();
|
||||
if (0 < count && count < tenth) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue