Over time, a WordPress database collects clutter that slows queries.
- Plugin method: install WP-Optimize, then clean up post revisions, auto-drafts, spam comments, trashed items, and transients.
- phpMyAdmin method: select the database, tick all tables, and choose Optimize table from the dropdown (article 124 covers the same menu).
- Schedule regular clean-ups (for example, monthly).
Important: Back up the database first (article 160). Optimisation is generally safe, but a backup means you can always roll back.
