Skip to content

Commit af12157

Browse files
committed
MAGETWO-68808: catalog_product_attribute is slow
1 parent 58bc35f commit af12157

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/internal/Magento/Framework/Indexer/BatchProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getBatchIds(
5858
$connection->quote($batch['to'])
5959
);
6060

61-
$ids = $connection->fetchCol($select->where($betweenCondition)->limit($batch['to'] - $batch['from'] + 1));
61+
$ids = $connection->fetchCol($select->where($betweenCondition));
6262
return array_map('intval', $ids);
6363
}
6464
}

lib/internal/Magento/Framework/Indexer/Test/Unit/BatchProviderTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ public function testGetBatchIds()
6464
$adapterMock = $this->getMock(AdapterInterface::class);
6565

6666
$selectMock->expects($this->once())->method('where')->with('(entity_id BETWEEN 10 AND 100)')->willReturnSelf();
67-
$selectMock->expects($this->once())->method('limit')->with(91)->willReturnSelf();
68-
6967
$adapterMock->expects($this->atLeastOnce())->method('quote')->willReturnArgument(0);
7068
$adapterMock->expects($this->once())->method('fetchCol')->with($selectMock, [])->willReturn([1, 2, 3]);
7169
$this->assertEquals(

0 commit comments

Comments
 (0)