From 8b44b9c01464e0871b2b9f186423ce1a10c05578 Mon Sep 17 00:00:00 2001
From: Claudiu Cristea <7931-claudiucristea@users.noreply.drupalcode.org>
Date: Mon, 14 Oct 2024 08:18:42 +0000
Subject: [PATCH] Issue #3480481 by claudiu.cristea: Drush command fails on
 content with multiple triples

---
 src/Drush/Commands/RdfSyncCommands.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Drush/Commands/RdfSyncCommands.php b/src/Drush/Commands/RdfSyncCommands.php
index 97db8d2..c09eba3 100644
--- a/src/Drush/Commands/RdfSyncCommands.php
+++ b/src/Drush/Commands/RdfSyncCommands.php
@@ -89,7 +89,7 @@ class RdfSyncCommands extends DrushCommands {
     $ids = array_values($query->execute());
 
     $batchBuilder = (new BatchBuilder())->addOperation([static::class, 'init'], [count($ids)]);
-    foreach (array_chunk($ids, 50) as $queuedIds) {
+    foreach (array_chunk($ids, 5) as $queuedIds) {
       $batchBuilder->addOperation([static::class, 'synchronizeBatch'], [$entityTypeId, $queuedIds]);
     }
     batch_set($batchBuilder->toArray());
-- 
GitLab