Skip to content

Commit 1caea8d

Browse files
committed
Fetsh all articles at once
1 parent 319afe0 commit 1caea8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SWP/Bundle/CoreBundle/Migrations/2021/01/Version20210112135542.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function postUp(Schema $schema): void
7676
$isProcessing = true;
7777

7878
while ($isProcessing) {
79-
$sql = "SELECT id, extra FROM swp_article LIMIT $numberOfRecordsPerPage OFFSET $totalArticlesProcessed";
79+
$sql = "SELECT id, extra FROM swp_article";
8080
$query = $entityManager->getConnection()->prepare($sql);
8181
$query->execute();
8282
$results = $query->fetchAll();

0 commit comments

Comments
 (0)