Skip to content

Commit

Permalink
try smaller batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Mar 3, 2024
1 parent 434a06b commit f9ff2b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Store/DoctrineDbalStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ function (Connection $connection) use ($messages): void {
$batchSize = (int)floor(self::MAX_UNSIGNED_SMALL_INT / $columnsLength);
$placeholder = implode(', ', array_fill(0, $columnsLength, '?'));

$batchSize = 1000;

$parameters = [];
$placeholders = [];
/** @var array<int<0, max>, Type> $types */
Expand Down

0 comments on commit f9ff2b5

Please sign in to comment.