Skip to content

Commit 5ee8c0c

Browse files
committed
MAGETWO-64479: [Indexer optimizations] Indexation process in non-locking way for stock indexer
1 parent d49b32c commit 5ee8c0c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/CatalogSearch/Model/Adapter/Mysql/Aggregation/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public function __construct(
9494
);
9595
$this->indexerStockFrontendResource = $indexerStockFrontendResource ?: ObjectManager::getInstance()
9696
->get(\Magento\CatalogInventory\Model\ResourceModel\Indexer\Stock\FrontendResource::class);
97+
$this->stateFactory = $stateFactory ?: ObjectManager::getInstance()
98+
->get(\Magento\Indexer\Model\Indexer\StateFactory::class);
9799
}
98100

99101
/**

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,6 @@
305305
<type name="Magento\CatalogSearch\Model\Search\FilterMapper\TermDropdownStrategy">
306306
<arguments>
307307
<argument name="frontendResource" xsi:type="object">Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\FrontendResource</argument>
308-
</arguments>
309-
</type>
310-
<type name="Magento\CatalogSearch\Model\Search\FilterMapper\TermDropdownStrategy">
311-
<arguments>
312308
<argument name="indexerStockFrontendResource" xsi:type="object">Magento\CatalogInventory\Model\ResourceModel\Indexer\Stock\FrontendResource</argument>
313309
</arguments>
314310
</type>

0 commit comments

Comments
 (0)