On Fri, Nov 6, 2015 at 3:29 PM, Ricordisamoa <[email protected]>
wrote:

> What if I need to get all revisions (~2000) of a page in Parsoid HTML5?
> The prop=revisions API (in batches of 50) with mwparserfromhell is much
> quicker.
>

That's a tradeoff you get with a highly-cacheable REST API: you generally
have to fetch each 'thing' individually rather than being able to batch
queries.

If you already know how to individually address each 'thing' (e.g. you
fetch the list of revisions for the page first) and the REST API's ToS
allow it, multiplexing requests might be possible to reduce the impact of
the limitation. If you have to rely on "next" and "previous" links in the
content to address adjacent 'things' hateoas-style you're probably out of
luck.


-- 
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to