2017-04-04 180 views
-1

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

它的解决方案是什么?

+0

你是如何重新编制索引的?从管理面板或命令行? – Muk

+0

上传产品后,它会自动在浏览器中重新索引。单独窗口 – Shaz

+2

如果您转到管理区域并在系统选项卡下查找索引管理,请查看并查看哪些索引设置为“保存时更新”。您可以在进行导入时将其更改为手动。我的猜测是当每个项目被导入并保存时,它会创建一个新的MySQL调用并超时,因此在进行导入时将它们更改为手动,然后放回,或者甚至在午夜设置一个cron重新索引,然后离开他们作为手册 – PhilS

回答

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 
0

对于快速重建索引,则可以通过腻子在您的SSH登录和运行以下命令 -

php -f shell/indexer.php reindexall