File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
lib/internal/Magento/Framework/Mview Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -280,12 +280,16 @@ public function update()
280
280
? $ this ->changelogBatchSize [$ this ->getChangelog ()->getViewId ()]
281
281
: self ::DEFAULT_BATCH_SIZE ;
282
282
283
- for ($ versionFrom = $ lastVersionId ; $ versionFrom < $ currentVersionId ; $ versionFrom += $ versionBatchSize ) {
283
+ for ($ versionFrom = $ lastVersionId ;
284
+ $ versionFrom < $ currentVersionId ;
285
+ $ versionFrom += $ versionBatchSize
286
+ ) {
284
287
// Don't go past the current version for atomicy.
285
288
$ versionTo = min ($ currentVersionId , $ versionFrom + $ versionBatchSize );
286
289
$ ids = $ this ->getChangelog ()->getList ($ versionFrom , $ versionTo );
287
290
288
- // We run the actual indexer in batches. Chunked AFTER loading to avoid duplicates in separate chunks.
291
+ // We run the actual indexer in batches.
292
+ // Chunked AFTER loading to avoid duplicates in separate chunks.
289
293
$ chunks = array_chunk ($ ids , $ batchSize );
290
294
foreach ($ chunks as $ ids ) {
291
295
$ action ->execute ($ ids );
You can’t perform that action at this time.
0 commit comments