I have 75 K products in my store. I uploaded 100 Products through Data Import Profile. It re-indexes all 75 K? Because it takes a lot of time and I get error of too many connections in Mysql.
What is the solution to it?
I have 75 K products in my store. I uploaded 100 Products through Data Import Profile. It re-indexes all 75 K? Because it takes a lot of time and I get error of too many connections in Mysql.
What is the solution to it?
you can try reindexing with ssh by running below command :
php -f shell/indexer.php reindexall
if you want to reindex each separately ,
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
For fast reindexing, you can login in your ssh through putty and run the below command -
php -f shell/indexer.php reindexall
Solution for Magento2
First of all, reset all previously locked indexes by another process... Run the following command from Magento2 folder
php -d memory_limit=56G bin/magento indexer:reset
Then after run
php -d memory_limit=56G bin/magento indexer:reindex
memory_limit=56G Can be replaced by available RAM on server or By -1