Question

My Magento installation (1.4.1) contains the following tables:

catalogindex_price
catalogindex_minimal_price
catalogindex_eav
catalogindex_aggregation
catalogindex_aggregation_tag
catalogindex_aggregation_to_tag

Since there is an index in their name, will they be rebuilt by a re-index, that is, may I safely truncate them?

I can not find any of them in the list of tables that are safe to truncate here.

I'm on Magento 1.4.1, although this might apply to other versions as well, provided these tables exist.

Was it helpful?

Solution

Looking into the history of app/code/core/Mage/CatalogIndex/etc/config.xml it turns out that:

  • catalogindex_price was removed in 1.4
  • catalogindex_minimal_price is still used as of 1.9
  • catalogindex_eav was removed in 1.4
  • catalogindex_aggregation is still used as of 1.9
  • catalogindex_aggregation_tag is still used as of 1.9
  • catalogindex_aggregation_to_tag is still used as of 1.9

That being said, it's safe to DROP catalogindex_price and catalogindex_eav and safe to TRUNCATE the others if you rebuild the index afterwards. But note that the shop might behave weird until the reindex process finished so you might want to put it into maintenance mode. And as always, don't forget to make backups.

Sources

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top