Is it possible to update product attributes without triggering reindex?
As known, the load()/setData()/save() scenario triggers reindex.
I've looked into 'updateAttributes' method in 'Mage_Catalog_Model_Product_Action' but I think it also triggers product reindex.
/**
* Update attribute values for entity list per store
*
* @param array $productIds
* @param array $attrData
* @param int $storeId
* @return Mage_Catalog_Model_Product_Action
*/
public function updateAttributes($productIds, $attrData, $storeId)
{
$this->_getResource()->updateAttributes($productIds, $attrData, $storeId);
$this->setData(array(
'product_ids' => array_unique($productIds),
'attributes_data' => $attrData,
'store_id' => $storeId
));
// register mass action indexer event
Mage::getSingleton('index/indexer')->processEntityAction(
$this, Mage_Catalog_Model_Product::ENTITY, Mage_Index_Model_Event::TYPE_MASS_ACTION
);
return $this;
}
The the code under '// register mass action indexer event' seems to trigger indexer action.