magento重新索引需要太多时间

magento重新索引需要太多时间,magento,reindex,Magento,Reindex,我的店里有75K的产品。 我通过数据导入配置文件上传了100个产品。 它重新索引了所有75K?因为这需要很多时间,而且我在Mysql中遇到了连接太多的错误 解决办法是什么 您可以通过运行以下命令尝试使用ssh重新编制索引: php -f shell/indexer.php reindexall 如果要分别重新编制每个索引 php shell/indexer.php --reindex catalog_product_attribute php shell/indexer.php --reind

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


解决办法是什么

您可以通过运行以下命令尝试使用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

为了快速重新编制索引,您可以通过putty登录ssh并运行以下命令-

php -f shell/indexer.php reindexall

你是如何重新编制索引的?从管理面板或命令行?上传产品后,它会自动在浏览器中重新编制索引。单独窗口如果您转到管理区域,在“系统”选项卡下查找索引管理,请查看哪些索引设置为“保存时更新”。您可以在导入时将其更改为手动。我的猜测是,在导入和保存每个项目时,它会进行一个新的MySQL调用并超时,所以在导入时将它们更改为手动,然后将它们放回原处,或者最好设置一个cron在午夜重新编制索引,并将其作为manual@Shaz尝试PhilS建议的解决方案,它应该会对您有所帮助。为此,您必须使用Magento部分索引,您可以通过下面的链接