Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

DB Health

Security covered Under active development 34 sites

This module monitors your Drupal database size and table growth, presenting this information with interactive visualizations and automated logging. It helps site administrators identify tables that are growing unexpectedly, enabling proactive maintenance and performance optimization.

DB Health

Monitor your Drupal database size and table growth over time, with interactive visualizations and automated logging.

The db_health module provides site administrators with a clear and actionable overview of their Drupal database. It monitors the total size of the database and each individual table, as well as the number of rows per table. This information is displayed in an easy-to-use interactive graph, helping site maintainers identify tables that are growing unexpectedly and take corrective action before performance issues arise.

Key features

  • ✅ Database size monitoring: View the total database size and the size of each table.
  • ✅ Table row counts: Monitor the number of rows for every table in your database.
  • ✅ Interactive graphs: Analyze your data visually with interactive, filterable graphs.
  • ✅ Automated logging: Periodic cron runs log database and table size information, providing a historical record of growth over time.
  • ✅ Growth tracking: Quickly identify which tables are increasing in size and might need optimization.
  • ✅ Developer & administrator friendly: Useful insights for site optimization, scaling decisions, and troubleshooting.

Use cases

  • Keep track of database growth trends.
  • Detect bloated tables that might indicate bugs, logging issues, or inefficient data storage.
  • Support data-driven maintenance and scaling plans for your Drupal site.
  • Help plan for database optimization or archiving.

How it works

  • A cron job runs periodically to collect database and table size statistics.
  • This data is logged and can be reviewed over time to understand trends.
  • An admin interface shows the current state of the database, with sortable tables and interactive graphs.

Installation & Usage

Use Composer (recommended):
composer require drupal/db_health

Enable the module:
drush en db_health

Run a manual database check:
drush db-health:run

View database health metrics

Navigate to Administration > Reports > Database Health (/admin/reports/db-health).

Review table sizes and row counts.

Explore historical trends with interactive graphs.

Automated monitoring

The module includes a cron task that runs periodically, collecting and logging database statistics. Ensure your site's cron is configured properly to keep your metrics up to date.

Drupal 9–11

Ask your assistant about DB Health

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • system Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
15
Tracked since
Jul 2025
Latest release
3 months ago
Releases (12 mo)
2 ▼ from 13
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.1.1 Stable 9–10 Jul 8, 2025
1.1.0 Stable 9–10 Jul 7, 2025
1.0.2 Stable 9–10 Jul 7, 2025
1.0.1 Stable 9–10 Jul 7, 2025
1.0.0 Stable 9–10 Jul 7, 2025