65 return $loadBalancer->getConnection( $id, $groups, $this->wiki );
78 if ( $this->wiki !==
false ) {
80 $loadBalancer->reuseConnection( $db );
94 $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
95 return $lbFactory->getMainLB( $this->wiki );
getLoadBalancer()
Get the database type used for read operations.
__construct( $wiki=false)
getConnection( $id, array $groups=[])
Returns a database connection.
releaseConnection(IDatabase $db)
Releases a database connection and makes it available for recycling.
Interface for database access objects.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))