Page MenuHomePhabricator

[Task] Use JOIN to find changes relevant for a given wiki
Closed, InvalidPublic

Description

To find changes relevant to wiki x, we should be able to join wb_changes against wb_changes_subscriptions. This would remove the need for programmatic filtering.

Related Objects

StatusSubtypeAssignedTask
InvalidNone
InvalidNone
Resolvedhoo
ResolvedNone
Resolvedaude
ResolvedNone
Resolvedaude
ResolvedNone
ResolvedLydia_Pintscher
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
ResolvedNone
Invaliddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolveddaniel
Resolvedhoo
DuplicateNone
Resolvedhoo
Resolvedaude

Event Timeline

daniel raised the priority of this task from to Needs Triage.
daniel updated the task description. (Show Details)
daniel subscribed.
Lydia_Pintscher renamed this task from Use JOIN to find changes relevant for a given wiki to [Task] Use JOIN to find changes relevant for a given wiki.Sep 1 2015, 11:39 AM
Lydia_Pintscher triaged this task as Medium priority.
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.

Is this still relevant?

Yes, we are actually working on this right now (see the dependency T109825: [Task] Use uppercase entity ID in wb_changes table.).

hoo raised the priority of this task from Medium to High.Jul 26 2017, 10:59 AM

Rising priority: Dispatching is an ongoing problem and this will fix (most of?) this.

Also I guess the number of changes that actually need dispatching has decreased (as we have a lot of entities not used on any sister project) these days. Thus fixing this and increasing the job batch size (or completely changing how that works) would fix the dispatching bottleneck for now.

Michael subscribed.

I think with the refactoring of how change dispatching works in Q3 2021, this is no longer applicable. Now RecentChangeSaveHookHandler schedules one job per change as long as there is any wiki subscribed to that entity. That happens in the process when the change has been made.