src/SAREhub/Commons/Misc/SqliteHashStorage.php
public function insertMulti(array $hashes)
    {
        $valuesString = '';
        foreach ($hashes as $id => $hash) {
            $valuesString .= "('$id','$hash'),";
        }

        $this->storage->exec("INSERT INTO " . $this->tableName . "(id, hash) VALUES " . rtrim($valuesString, ','));
    }
public function insertMulti(array $hashes)
    {
        $valuesString = '';
        foreach ($hashes as $id => $hash) {
            $valuesString .= "('$id','$hash'),";
        }

        $this->storage->exec("INSERT INTO " . $this->tableName . "(id, hash) VALUES " . rtrim($valuesString, ','));
    }
public function insertMulti ( array $ hashes ) { $ valuesString = '' ; foreach ( $ hashes as $ id => $ hash ) { $ valuesString .= "('$id','$hash')," ; } $ this -> storage -> exec ( "INSERT INTO " . $ this -> tableName . "(id, hash) VALUES " . rtrim ( $ valuesString , ',' ) ) ; }
Inserts hashes in batch for better performance
@param array $hashes 'id' => 'hash'
Inserts hashes in batch for better performance