PS - Cleaning data optimize database

PHOTO EMBED

Tue Jan 28 2025 18:23:56 GMT+0000 (Coordinated Universal Time)

Saved by @caovillanueva #html

ps_connections – It contains informations about each visit in your shop. For example you can see there the IP address or referer link which caused visitor to enter your website.

ps_connections_page – Connections to specific pages.

ps_connections_source – URL of pages where users came from.

ps_pagenotfound – All 404 error hits (page not found).

ps_statssearch – Your store search engine statistics.

Remove data from those tables
Run following command in your phpMyAdmin:

TRUNCATE TABLE ps_connections;
TRUNCATE TABLE ps_connections_page;
TRUNCATE TABLE ps_connections_source;
TRUNCATE TABLE ps_pagenotfound;
TRUNCATE TABLE ps_statssearch;

Some people recommend to clear also ps_guest table but I would not do that. Why? Because guests infos are located in more tables, so those informations (based on guests IDs) would not have connection to specific guests (when you would clear main guest table).
content_copyCOPY

Clearing unnecessary data from PrestaShop database