mirror of
https://github.com/google/nomulus
synced 2026-01-10 16:00:52 +00:00
Improve efficiency of async contact and host deletion with batching
This allows handling of N asynchronous deletion requests simultaneously instead of just 1. An accumulation pull queue is used for deletion requests, and the async deletion [] is now fired off whenever that pull queue isn't empty, and processes many tasks at once. This doesn't particularly take more time, because the bulk of the cost of the async delete operation is simply iterating over all DomainBases (which has to happen regardless of how many contacts and hosts are being deleted). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133169336
This commit is contained in:
@@ -30,6 +30,7 @@ import java.util.Map.Entry;
|
||||
import org.joda.time.Duration;
|
||||
|
||||
/** Utility methods specific to async flows. */
|
||||
// TODO(b/26140521): Delete this class once non-batched async operations are deleted.
|
||||
public final class AsyncFlowUtils {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
Reference in New Issue
Block a user