magento重新索引需要花费太多时间

时间:2017-04-04 11:44:29

标签: magento reindex

我店里有75 K产品。 我通过数据导入配置文件上传了100个产品 它重新索引所有75 K?因为它需要花费很多时间而且我在Mysql中得到太多连接的错误。

它有什么解决方案?

2 个答案:

答案 0 :(得分:0)

您可以通过运行以下命令尝试使用ssh重建索引:

php -f shell/indexer.php reindexall

如果你想单独重新索引,

php shell/indexer.php --reindex catalog_product_attribute
php shell/indexer.php --reindex catalog_product_price
php shell/indexer.php --reindex catalog_url
php shell/indexer.php --reindex catalog_product_flat
php shell/indexer.php --reindex catalog_category_flat
php shell/indexer.php --reindex catalog_category_product
php shell/indexer.php --reindex catalogsearch_fulltext
php shell/indexer.php --reindex cataloginventory_stock
php shell/indexer.php --reindex tag_summary

答案 1 :(得分:0)

对于快速重建索引,您可以通过putty登录ssh并运行以下命令 -

php -f shell/indexer.php reindexall