Last modified: 2012-11-29 13:14:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40356, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38356 - wbgetitems: add possibility to request multiple site-title-pairs on one request
wbgetitems: add possibility to request multiple site-title-pairs on one request
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on: 38355
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-12 08:48 UTC by merl
Modified: 2012-11-29 13:14 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description merl 2012-07-12 08:48:29 UTC
Currently it is only possible to request multiple site-title-pairs if they either are on the same site or have the same title.

If you want to check some pages of an interwikigroup for already being added to wikidata, you have to create multiple request. It's very unlikely that the title is the same on many languages (and the site always differs).

It would massively reduce the number of needed requests if there is a possibility to request mutiple sitelinks at once.

Currently i am doing about 50-100 wbgettitems requests per minute each containing a single sitelinks. For checking all pages my bot processes while working on wikipedia projects, in average 1000 sitelinks must be checked per minute.

So i would suggest to add a third method to request wbgetitems instead of existing ids and sites/titles params. Perhaps these site/title pairs can be submitted using json as it is already done at wbsetitem module.
Comment 1 Nikola Smolenski 2012-07-12 10:38:52 UTC
I discussed this with John at the hackathon and we believe that it should be possible and better to make a generalized solution, allowing to combine any number of any api calls by using FauxRequest.
Comment 2 jeblad 2012-07-12 22:08:08 UTC
There is a quite neat generalization of the existing code that can solve this. I'll take a look at it.
Comment 3 jeblad 2012-07-12 23:24:17 UTC
It is uploaded a patchset that implements this.
https://gerrit.wikimedia.org/r/15575

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links