Last modified: 2012-11-29 13:14:20 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.
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.
There is a quite neat generalization of the existing code that can solve this. I'll take a look at it.
It is uploaded a patchset that implements this. https://gerrit.wikimedia.org/r/15575