Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How do I optimize the WordPress database with Aegisify Shield?

Over time, database tables can become fragmented, especially after many deletions (old revisions, spam comments, expired transients). Optimizing rebuilds tables to reclaim space and can improve performance.

Running an optimization

  1. Go to Aegisify Shield → DB Tools → Optimize.
  2. Under Optimize Now, select the WordPress tables to optimize.
  3. Click Run Optimization.

Shield runs the database’s OPTIMIZE TABLE command on the selected tables immediately. The action is recorded in the Activity Log.

When to run it

  • After a large cleanup (deleting spam, revisions, or a removed plugin’s data).
  • During low-traffic windows, because optimization can briefly lock or rebuild tables depending on the database engine.

Before you start

Take a backup first. Optimization is safe and non-aggressive, but database maintenance should always have a recovery path.

Purging noisy logs

On the same tab, Purge Noisy DB Tools Logs removes repetitive DB Tools heartbeat entries from the Activity Log.

Automatic optimization

Pro can run optimization at most once per week automatically. See Weekly optimization scheduler.

Requirements

On-demand and scheduled optimization require an active Aegisify subscription.

Related: Database table overview, DB Tools module.

2026-12-01T03:50:07+00:00January 13th, 2026||

Find this article interesting, please share.