Domanda

La mia installazione di Magento (1.4.1) contiene le seguenti tabelle:

catalogindex_price
catalogindex_minimal_price
catalogindex_eav
catalogindex_aggregation
catalogindex_aggregation_tag
catalogindex_aggregation_to_tag

Poiché non v'è un index nel loro nome, essi saranno ricostruito da una ri-indice, cioè, posso tranquillamente troncare loro?

non riesco a trovare nessuno di loro nella lista delle tabelle che sono sicuri per troncare qui .

Sono su Magento 1.4.1, anche se questo potrebbe applicarsi ad altre versioni pure, purché esistano queste tabelle.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top