From 80ef2976dff2f3e43fe0a304d262e119537837ce Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Thu, 6 Jun 2019 20:56:48 +0100 Subject: [PATCH] Speed up Wikidata uploads --- .../org/openrefine/wikidata/editing/EditBatchProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/wikidata/src/org/openrefine/wikidata/editing/EditBatchProcessor.java b/extensions/wikidata/src/org/openrefine/wikidata/editing/EditBatchProcessor.java index e9822ee23..2b68f92d9 100644 --- a/extensions/wikidata/src/org/openrefine/wikidata/editing/EditBatchProcessor.java +++ b/extensions/wikidata/src/org/openrefine/wikidata/editing/EditBatchProcessor.java @@ -91,6 +91,11 @@ public class EditBatchProcessor { this.editor = editor; editor.setEditAsBot(true); // this will not do anything if the user does not // have a bot flag, and this is generally wanted if they have one. + + // edit at 60 edits/min by default. If Wikidata is overloaded + // it will slow us down via the maxlag mechanism. + editor.setAverageTimePerEdit(1000); + this.library = library; this.summary = summary; this.batchSize = batchSize;