diff --git a/core/DataAccess/LogAggregator.php b/core/DataAccess/LogAggregator.php index 1df5000fd68..69683df366b 100644 --- a/core/DataAccess/LogAggregator.php +++ b/core/DataAccess/LogAggregator.php @@ -318,7 +318,7 @@ private function createTemporaryTable($unprefixedSegmentTableName, $segmentSelec $all = $readerDb->fetchAll($segmentSelectSql, $segmentSelectBind); if (!empty($all)) { // we're not using batchinsert since this would not support the reader DB. - $readerDb->query('INSERT INTO ' . $table . ' VALUES (' . implode('),(', array_column($all, 'idvisit')) . ')'); + $readerDb->query('INSERT IGNORE INTO ' . $table . ' VALUES (' . implode('),(', array_column($all, 'idvisit')) . ')'); } return; }