Skip to content

Commit 67924ec

Browse files
author
Stanislav Idolov
committed
MAGETWO-64187: Batch size algorithm
1 parent bf07aeb commit 67924ec

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

app/code/Magento/Indexer/Model/IndexTableRowSizeEstimator.php renamed to app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/IndexTableRowSizeEstimator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
namespace Magento\Indexer\Model;
7+
namespace Magento\Catalog\Model\ResourceModel\Product\Indexer;
88

99
class IndexTableRowSizeEstimator implements \Magento\Framework\Indexer\IndexTableRowSizeEstimatorInterface
1010
{

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/CompositeProductRowSizeEstimator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class CompositeProductRowSizeEstimator implements \Magento\Framework\Indexer\IndexTableRowSizeEstimatorInterface
1010
{
1111
/**
12-
* @var \Magento\Indexer\Model\IndexTableRowSizeEstimator
12+
* @var \Magento\Catalog\Model\ResourceModel\Product\Indexer\IndexTableRowSizeEstimator
1313
*/
1414
private $indexTableRowSizeEstimator;
1515

@@ -20,11 +20,11 @@ class CompositeProductRowSizeEstimator implements \Magento\Framework\Indexer\Ind
2020

2121
/**
2222
* @param DefaultPrice $indexerResource
23-
* @param \Magento\Indexer\Model\IndexTableRowSizeEstimator $indexTableRowSizeEstimator
23+
* @param \Magento\Catalog\Model\ResourceModel\Product\Indexer\IndexTableRowSizeEstimator $indexTableRowSizeEstimator
2424
*/
2525
public function __construct(
2626
\Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\DefaultPrice $indexerResource,
27-
\Magento\Indexer\Model\IndexTableRowSizeEstimator $indexTableRowSizeEstimator
27+
\Magento\Catalog\Model\ResourceModel\Product\Indexer\IndexTableRowSizeEstimator $indexTableRowSizeEstimator
2828
) {
2929
$this->indexerResource = $indexerResource;
3030
$this->indexTableRowSizeEstimator = $indexTableRowSizeEstimator;

app/code/Magento/Catalog/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,4 +943,9 @@
943943
<argument name="indexerFrontendResource" xsi:type="object">Magento\Catalog\Model\ResourceModel\Product\Indexer\Price\FrontendResource</argument>
944944
</arguments>
945945
</type>
946+
<type name="Magento\Framework\Indexer\BatchSizeManagement">
947+
<arguments>
948+
<argument name="rowSizeEstimator" xsi:type="object" shared="false">\Magento\Catalog\Model\ResourceModel\Product\Indexer\IndexTableRowSizeEstimator</argument>
949+
</arguments>
950+
</type>
946951
</config>

app/code/Magento/Indexer/etc/di.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,4 @@
5656
</arguments>
5757
</type>
5858
<preference for="Magento\Framework\Indexer\BatchSizeManagementInterface" type="Magento\Framework\Indexer\BatchSizeManagement" />
59-
<type name="Magento\Framework\Indexer\BatchSizeManagement">
60-
<arguments>
61-
<argument name="rowSizeEstimator" xsi:type="object" shared="false">Magento\Indexer\Model\IndexTableRowSizeEstimator</argument>
62-
</arguments>
63-
</type>
6459
</config>

0 commit comments

Comments
 (0)