Page MenuHomePhabricator

Optimize SiteLinkTable::saveLinksOfEntity to only update the table if actually necessary
Closed, ResolvedPublic

Description

Currently, SiteLinkTable::saveLinksOfEntity unconditionally deleted all links for the item, then adds all links for the item.

Instead, it would be nice to just delete the links that were since removed
from, and add just the ones that got added to the entity.


Version: unspecified
Severity: normal
Whiteboard: backlog

Details

Reference
bz57749

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:30 AM
bzimport set Reference to bz57749.
bzimport added a subscriber: Unknown Object (MLST).

Change 99194 had a related patch set uploaded by Daniel Kinzler:
(bug 57749) reduce churn on wb_items_per_site table.

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

Change 99194 merged by Jeroen De Dauw:
(bug 57749) reduce churn on wb_items_per_site table.

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