I am deleting 50000 products from Magento using MySql query but every time I am getting timeout error.
lost connection to mysql server during query
Is there any way to fix this? I have already increased the max_execution_time
in the php.ini.
I have also set max_allowed_packet
to 64M
I am using following command to delete the products.
DELETE FROM catalog_product_entity WHERE entity_id IN (here I am providing the entity_ids with comma separated)
DELETE FROM catalog_product_entity WHERE entity_id IN ('1','2','3',.......'5000')
Is there any other way of deleting the products safely without time out?
Note : will this command help me speed up the application
mysql -u root -pYOURPASSWORD -e "flush query cache";
I have set this to run after every 9 minutes using cronjob
My database size is very huge, more than 50GB and server is dedicated server with 16 GB RAM.
I am running this query directly in phpmyadmin.
Entities are in random order