Can someone please tell me is there any specific order for indexing needs to follow. My current order is,
- catalog_product_attribute
- catalog_product_price
- catalog_url
- catalog_product_flat
- catalog_category_flat
- catalog_category_product
- catalogsearch_fulltext
- cataloginventory_stock
Why i am asking is since the catalog_url runs as the third and it takes a lot of time to complete. I need to bring up both catalog_product_flat and catalog_category_flat which is required to be upto date for my product import to run correctly.
Thanks 🙂
Best Answer
The indexing order when reindexing all processes is defined by
Mage_Index_Model_Indexer::_runAll()
.This method uses the
depends
property of each process to check which other processes have to run before itself can do it's work.The
getDepends()
method of theindex/process
uses the configuration nodeglobal/index/indexer/[process-code]/depends
to determine it's dependencies.Having a look at
Mage/Catalog/etc/config.xml
, the indexer processes configurations there are as follows:No dependencies are declared at all, so I would say the concrete processing order is more or less random, or unspecified.
To have the
*_flat
indexer processes run before thecatalog_url
reindexing, it should be enough to add a dependency as follows: