Hi all,
Our web store has been open for almost a year, and over time the database has accumulated a lot of customer carts that were never checked out. I seems like this is a major factor slowing down our website (especially when it comes to adding items to cart, and checking out).
I'm looking for a way to clean up old, unused carts automatically, perhaps with an SQL query.
I'm not very well-versed in SQL... but it seems that these old cart items are stored in tables "customers_basket" and "customers_basket_attributes". But only the former one has a date field, and I'm not seeing a straightforward way of correlating to the correct rows in the second table.
So... does anyone have an idea? How can I automatically purge every non-checked-out cart that's older than date X?
(we're already using the "Recover Cart Sales" add-on, which allows me to review and delete old carts, but only one-by-one - and when it comes to our web server and the state of our database, this is impossibly slow. So I'm looking for a solution that just deletes everything older than a certain date).
Thanks in advance.
Bookmarks