Can someone please explain difference between Process
and Events
when creating a Custom Index in Magento?
When are the functions _processEvent(Mage_Index_Model_Event $event)
, _registerEvent(Mage_Index_Model_Event $event)
, and matchEvent(Mage_Index_Model_Event $event)
are called and how to use them? thanks
Best Answer
Index Event
This is the moment when the entity is changed. So if a product is updated then it will get a row in the event table
index_event
. It has the following information:Event Types
There are also the following event types:
Index Process
This is basically a wrapper for the indexer itself and can be found in the table
index_process
. It has the following information:Indexer Process Statuses
If the index mode is set to "real-time" then when an entity is changed then the process will be rerun straight away, but when the index mode is set to "manual" then on update the process status will be set to "Require reindex"
Note: super article on this http://www.slideshare.net/ivanchepurnyi/magento-indexes