Page MenuHomePhabricator

Hooks::onHtmlPageLinkRendererEnd: Use the labels table ahead of reading from the DB
Closed, ResolvedPublic

Description

Right now every time we're asked for the label for a ZObject, we fetch the whole object from the DB via ZObjectStore just to read its Z2K3(!). Instead, we should pull the labels from the labels table and only fall back to the ZObjectStore if we can't find a label there.

This should make RecentChanges and Special:ListZObjectsByType a lot faster, hopefully.

Event Timeline

Change 743002 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Hooks::onHtmlPageLinkRendererEnd: Use the labels table ahead of reading from the DB

https://gerrit.wikimedia.org/r/743002

Change 743002 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Hooks::onHtmlPageLinkRendererEnd: Use the labels table ahead of reading from the DB

https://gerrit.wikimedia.org/r/743002