Page MenuHomePhabricator

Improve MW connection access
Closed, DeclinedPublic

Description

Improve the way we access the MediaWiki mysqli or PDO connection.

https://github.com/wmde/mediawiki-doctrine-connection

Event Timeline

We tried to make the connection handle public, but that got -1ed by million people so don't think that will ever pass.

The second option we can think of, if possible, is to figure out a way to construct our own connection using load balancer directly. This option hasn't been explored at all yet.

Note for later (appears I forgot to add it before):

one possible improvement here that is less evil is to explore using LoadBalancer to create the connection and bypass relying on getting it from a Database object like we did so far