Merge pull request #2061 from OpenRefine/speed-up-wikidata-uploads

Speed up Wikidata uploads
This commit is contained in:
Antonin Delpeuch 2019-06-14 14:22:48 +01:00 committed by GitHub
commit fa6e3ab0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;