original_string: public function updateMulti(array $hashes)
      {
          $startSql = "UPDATE " . $this->tableName;
          $this->storage->exec('BEGIN TRANSACTION');
          foreach ($hashes as $id => $hash) {
              $this->storage->exec($startSql . " SET hash='$hash' WHERE id='$id'");
          }
          $this->storage->exec('END TRANSACTION');
      }
code: public function updateMulti(array $hashes)
      {
          $startSql = "UPDATE " . $this->tableName;
          $this->storage->exec('BEGIN TRANSACTION');
          foreach ($hashes as $id => $hash) {
              $this->storage->exec($startSql . " SET hash='$hash' WHERE id='$id'");
          }
          $this->storage->exec('END TRANSACTION');
      }
code_tokens: public function updateMulti ( array $ hashes ) { $ startSql = "UPDATE " . $ this -> tableName ; $ this -> storage -> exec ( 'BEGIN TRANSACTION' ) ; foreach ( $ hashes as $ id => $ hash ) { $ this -> storage -> exec ( $ startSql . " SET hash='$hash' WHERE id='$id'" ) ; } $ this -> storage -> exec ( 'END TRANSACTION' ) ; }
docstring: Updating hashes in batch for better performance
  @param array $hashes 'id' => 'hash'
docstring_tokens: Updating hashes in batch for better performance