Skip to content

Commit

Permalink
Merge pull request #2061 from OpenRefine/speed-up-wikidata-uploads
Browse files Browse the repository at this point in the history
Speed up Wikidata uploads
  • Loading branch information
wetneb committed Jun 14, 2019
2 parents fb597f7 + 80ef297 commit fa6e3ab
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public EditBatchProcessor(WikibaseDataFetcher fetcher, WikibaseDataEditor editor
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;
Expand Down

0 comments on commit fa6e3ab

Please sign in to comment.