Community Wishlist Survey 2021/Wikidata/New batch edit API

From Meta, a Wikimedia project coordination wiki

New batch edit API

  • Problem: Currently when someone edits 1000 times, WDQS update is invoked 1000 times.
  • Who would benefit:
  • Proposed solution: We need to introduce a new API to do batch edits. See d:User_talk:BrokenSegue/API_Proxy#Batch_edit_API for more information.
  • More comments:
  • Phabricator tickets:
  • Proposer: GZWDer (talk) 06:19, 26 November 2020 (UTC)Reply[reply]


  • @GZWDer: Could you elaborate on the issue? What is the problem with 1000 WDQS updates? How should the "batch edit API" work? Are you proposing, for example, to make the same change to 1000 items at the same time? Apologies for my ignorance, I admit I'm not the most Wikidata-savvy. I'm hoping a little clarification will benefit voters, too, and not just me :) Thanks, MusikAnimal (WMF) (talk) 22:36, 2 December 2020 (UTC)Reply[reply]
    • WDQS currently reload an item when it is edited. So when an item is edited 100 times, it must be reloaded 100 times. Moreover, many small reloads is more expensive than a large one.--GZWDer (talk) 12:35, 3 December 2020 (UTC)Reply[reply]
  • I have a plan to import more than 200 million (scientific articles) items. However, currently we need seven years to complete this if we do one edit every second.--GZWDer (talk) 21:25, 9 December 2020 (UTC)Reply[reply]


  • Support Support Libcub (talk) 20:58, 10 December 2020 (UTC)Reply[reply]
  • Support Support Redalert2fan (talk) 00:22, 12 December 2020 (UTC)Reply[reply]
  • Support Support not a big fan of bot edits, though Klaas `Z4␟` V:  15:19, 12 December 2020 (UTC)Reply[reply]
  • Support Support Cesc97 (talk) 19:28, 13 December 2020 (UTC)Reply[reply]
  • Support Support QuickStatements is slow and tends to randomly fail. Current experience of mass-editing is miserable, developers implicitly penalize active users by introducing more and more rate limits. Come on, since 2013 I did not see a single improvement in this direction, only restrictions. And I perfectly understand that "batch edit api" is not just "yet another api on top of existing primitives". This should be a targeted pipeline redesign, not necessarily starting with "bulk" part, for example, starting with introduction of non-bulk operations commonly used in QuickStatements, like "atomically insert statement with references and qualifiers, or update existing statement, if any". That's my only vote. Other proposals are definitely cool, but would kill Wikidata due to growing user base, as more users will just peck existing APIs until denial of service. Lockal (talk) 16:29, 16 December 2020 (UTC)Reply[reply]
  • Support Support EncycloABC (talk) 18:37, 18 December 2020 (UTC)Reply[reply]