lb = $lb; } protected function getDB() { return $this->lb->getConnection( DB_PRIMARY, [], false, // So that startAtomic() will start a commit, reducing lock time. // Without this flag, the transaction will be open until the start // of request shutdown. This could be omitted to reduce the // connection overhead, with numShards tuned upwards to compensate. ILoadBalancer::CONN_TRX_AUTOCOMMIT ); } protected function getTableName() { return 'user_autocreate_serial'; } }