zhuyifei1999 added a comment.

The most correct thing for pywikibot's "backlinks" generator to do is to keep continuing the query and merging the result sets until it gets the batchcomplete flag in the response.

Merging until 'batchcomplete' is not realistic if a certain generator yields too many results (say generator for transclusions of a widely used template generator yields hundreds of thousands of results). Other methods I thought of, such as estimating the #of results that will be yielded for different logic, and merging until the certain pageid is gone from 'pageids', can make the logic in pywikibot unnecessarily complex.


TASK DETAIL
https://phabricator.wikimedia.org/T194233

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: zhuyifei1999
Cc: Anomie, Dvorapa, Xqt, Aklapper, pywikibot-bugs-list, JJMC89, Magul, Tbscho, MayS, Sethakill, Mdupont, dg711, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy, Legoktm
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to