Skip to content

Commit 12db0b1

Browse files
committed
TASK: Adjust batch size
1 parent 40988cb commit 12db0b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/Command/NodeIndexQueueCommandController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public function buildCommand($workspace = null)
7373
$this->createNextIndex($indexPostfix);
7474
$this->updateMapping();
7575

76-
7776
$this->outputLine(sprintf('Indexing on %s ... ', $indexPostfix));
7877

7978
if ($workspace === null) {
@@ -103,7 +102,7 @@ public function buildCommand($workspace = null)
103102
protected function indexWorkspace($workspaceName, $indexPostfix)
104103
{
105104
$offset = 0;
106-
$batchSize = 1500;
105+
$batchSize = 500;
107106
while (true) {
108107
$iterator = $this->nodeDataRepository->findAllBySiteAndWorkspace($workspaceName, $offset, $batchSize);
109108

0 commit comments

Comments
 (0)