Jump to content

Delete products very slow - prestashop 1.6.0.8


Recommended Posts

I have in my prestashop 1.6 about 50000 products. I realized I have a problem with the deletion of the products. The elimination of a single product takes more than a minute. And the massive elimination is thus impossible. How can I fix? Thank you

Link to comment
Share on other sites

Hi,
I have found that presatashop is slow to erase the products in the "home" category while I have no problems if I delete products in other categories. 
Then I thought, I can with a query to change the category of all products under "home" category and then delete them?

Link to comment
Share on other sites

if you the id_category of   " Home"  you can use this query :

 

DELETE FROM ps_category_product WHERE id_category = ;

 

Where x=id_category for  "Home"

Is not dangerous delete product like that???

I have in my prestashop 1.6 about 50000 products. I realized I have a problem with the deletion of the products. The elimination of a single product takes more than a minute. And the massive elimination is thus impossible. How can I fix? Thank you

 

Are you using your web site under CGI, FCGI or MOD APACHE?

Link to comment
Share on other sites

  • 1 month later...

if you the id_category of   " Home"  you can use this query :

 

DELETE FROM ps_category_product WHERE id_category = ;

 

Where x=id_category for  "Home"

 

Suggested query is only deleting association with category, not products as whole.

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...