| matej_suchanek created this task. matej_suchanek added projects: Pywikibot-Wikidata, Pywikibot-core, Performance. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
In the framework, there are several places where APISite.data_repository() (and APISite.has_data_repository property) is called. Although it could be saved to a variable or a class member in some cases, for instance in pagegenerators.WikibaseItemGenerator() it may be called on every iteration. And as the site object does not cache the result, an API query is made on each call, with the same result.
TASK DETAIL
EMAIL PREFERENCES
To: matej_suchanek
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Magul, Tbscho, MayS, Vali.matei, Mdupont, JJMC89, Avicennasis, Sn1per, GWicke, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy, Jay8g
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Magul, Tbscho, MayS, Vali.matei, Mdupont, JJMC89, Avicennasis, Sn1per, GWicke, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy, Jay8g
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
