wacommunication Posted January 14, 2018 Share Posted January 14, 2018 Hi, I thought a week ago that removing some of the attributes from my database would solve my problem with my saving buttons. It did, but it brought a new one : the site was becoming really slow and stopped working this morning. So i brought back my old ps_attribute and ps_attribute_lang tables with more than 100.000 attributes and my save and save and stay buttons are back to infinite turning state. So i'm looking for an SQL query that would help me clean the attributes, and any related table, so that i could start working on my products again. I'm a newbie, i might be taking the problem the wrong way, so i'm open to any suggestion to solve that problem. Thanks a lot ! Link to comment Share on other sites More sharing options...
musicmaster Posted January 14, 2018 Share Posted January 14, 2018 If you start emptying tables I would start with the four ps_product_attribute* tables. Link to comment Share on other sites More sharing options...
wacommunication Posted January 15, 2018 Author Share Posted January 15, 2018 Thanks musicmaster. Can i check if the product created has been ordered, is in a registerd client cart, or has just been created by a bot ? Link to comment Share on other sites More sharing options...
musicmaster Posted January 15, 2018 Share Posted January 15, 2018 You are asking a lot. Maybe you send spend some more time investigating yourself. An ordered product can be found in the ps_order_detail table In the ps_orders table you find an id_customer. If you look that up in the ps_customer table you will find that it contains an is_guest field Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now