Jeff A Posted August 6 Share Posted August 6 Admin page is extremely slow and often crashes with 504 - timeout. Have turned on slow-query log. There are quite a few - they all seem to relate to the connections table. This one takes 80 seconds: # Query_time: 80.357039 Lock_time: 0.000002 Rows_sent: 1 Rows_examined: 8477155 SET timestamp=1754412925; SELECT COUNT(*) as visits, COUNT(DISTINCT `id_guest`) as unique_visitors FROM `connections` WHERE `date_add` BETWEEN "2025-01-01 00:00:00" AND "2025-08-02 23:59:59" AND id_shop IN (1) LIMIT 1; Link to comment Share on other sites More sharing options...
WebCommercify Posted August 6 Share Posted August 6 Hello, You have two options: 1) Back up this table and then truncate it. 2) Contact your hosting provider and ask them to optimize the related database. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted August 7 Share Posted August 7 See this post, that gives solution. 1 Link to comment Share on other sites More sharing options...
El Patron Posted August 9 Share Posted August 9 I wrote blog post that might help: https://prestaheroes.com/blogs/mysql-optimization/which-large-prestashop-tables-can-be-dropped-or-emptied-safely 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