Run partial reindex process (mview)

If you want to force run a partial reindex process, also called mview or materialized view to update only entries collected in a change log table (suffixed with _cl) you can use following command. First you need to find out desired process code with

bin/magento indexer:info

command. And use it for the


variable value.

$processCode = 'visual_merchandiser_category';
$collection = $objectManaget->get(\Magento\Framework\Mview\View\Collection::class);
$item = $collection->getItemsByColumnValue('view_id', $processCode)[0];
2022   index   indexer   magento 2   magento2