2017-04-04 40 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