Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, Wikibase-Lua, MediaWiki-extensions-WikibaseClient. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION The `mw.wikibase` Lua functions `getAllStatements` and `getBestStatements` are expensive in the same way as `getEntity`, I believe: they have to load the whole entity from the database. (They’re slightly less expensive than `getEntity` in that not the whole entity has to be converted into a Lua table afterwards.) However, this expensiveness is incompletely modeled: the underlying entity accesses are counted by the PHP `EntityAccessor` (via `RestrictedEntityLookup`), and therefore more than `entityAccessLimit` calls will cause an error; however, they’re not counted against the “expensive (parser) function count”, unlike `getEntity()`, which calls `php.incrementExpensiveFunctionCount()`. I think this isn’t intentional. TASK DETAIL https://phabricator.wikimedia.org/T297412 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Aklapper, Invadibot, maantietaja, Akuckartz, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
