Skip to content

Commit d2cca2c

Browse files
author
Stanislav Idolov
committed
MAGETWO-65146: Batch data processing for EAV indexer implementation
1 parent 80ad393 commit d2cca2c

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav

1 file changed

+13
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,17 @@ protected function _prepareRelationIndex($parentIds = null)
405405
}
406406
return $this;
407407
}
408+
409+
/**
410+
* @inheritdoc
411+
*/
412+
public function clearTemporaryIndexTable()
413+
{
414+
if (!$this->tableStrategy->getUseIdxTable()) {
415+
// Drop temporary index table
416+
$this->getConnection()->dropTable($this->getIdxTable());
417+
} else {
418+
parent::clearTemporaryIndexTable();
419+
}
420+
}
408421
}

0 commit comments

Comments
 (0)