Page MenuHomePhabricator

Support wgSharedTables setup in UserStore
Closed, DeclinedPublic

Description

wgShareTables allows MediaWiki to share user and actor table. In Setup.php the LOCAL wiki DB load balancer is setup for the shared DB via setTableAliases, but ActorStore is supposed to be cross-wiki-aware, so it needs to figure out whether to use connect to the shared database for actor table or not.

We need to figure out why was the Setup.php setup limited to local wiki domain. My guess is that wikis on the same farm can be configured differently with regards to using the shared database, and in setup.php we do not know if the target foreign wiki uses the same shared DB. I wonder if such setup is possible and something we would want to support? If not, can we configure sharedDB for all the wikis via calling setTableAliases on the LBFactory instead of main load balancer?

Event Timeline

daniel lowered the priority of this task from High to Medium.Feb 10 2021, 12:15 PM
aaron closed this task as Declined.EditedJan 30 2024, 10:41 PM
aaron subscribed.

I don't think anything new should get built on top of $wgSharedTables or setTableAliases(). Those are basically old tech debt that's akin to inserting things in the middle of a jinga tower to hopefully get the intent result.

See T355376 .