67 public function write( array $updates ) {
69 $ticket = $dbProvider->getEmptyTransactionTicket( __METHOD__ );
72 if ( (
string)$this->caller !==
'' ) {
73 $caller .=
" (for {$this->caller})";
76 foreach ( $updates as $update ) {
77 $this->db->newUpdateQueryBuilder()
78 ->update( $this->table )
79 ->set( $update[
'changes'] )
80 ->where( $update[
'primaryKey'] )
84 $dbProvider->commitAndWaitForReplication( __METHOD__, $ticket );
89class_alias( BatchRowWriter::class,
'BatchRowWriter' );