| zhuyifei1999 added a comment. |
In T194233#4198763, @Anomie wrote: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
EMAIL PREFERENCES
To: zhuyifei1999
Cc: Anomie, Dvorapa, Xqt, Aklapper, pywikibot-bugs-list, JJMC89, Magul, Tbscho, MayS, Sethakill, Mdupont, dg711, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy, Legoktm
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
