Drupal is a registered trademark of Dries Buytaert
drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.14 Minor update available for module linkit (7.0.14). masquerade 8.x-2.2 Minor update available for module masquerade (8.x-2.2). video_embed_field 3.1.0 Minor update available for module video_embed_field (3.1.0). bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). symfony_mailer 2.0.0 Major update available for module symfony_mailer (2.0.0). editoria11y 3.0.1 Minor update available for module editoria11y (3.0.1). geofield_map 11.1.9 Minor update available for module geofield_map (11.1.9). domain 3.0.0 Major update available for module domain (3.0.0). ai 1.2.15 Minor update available for module ai (1.2.15). ai 1.3.4 Minor update available for module ai (1.3.4).

db_performance

3 sites No security coverage
View on drupal.org

DB Performance monitors slow database queries, aggregates them using query fingerprinting, and suggests indexes to improve performance without external tools.

Features

DB Performance helps developers and site builders understand how their Drupal site interacts with the database and where performance bottlenecks occur.

Main features:
Collects slow SQL queries during normal site usage
Aggregates queries using normalization and fingerprinting
Shows statistics such as:
number of calls
average execution time
maximum execution time
Filters out irrelevant queries (cache, sessions, internal tables)
Highlights the most impactful queries
Suggests database indexes based on query structure (EXPLAIN-based, upcoming feature)
Optional manual index creation

Use cases:
Debugging slow pages
Optimizing Views and EntityQuery performance
Improving large content or e-commerce sites
Identifying missing database indexes without external tools
This module is especially useful when performance issues are caused by database access patterns rather than PHP code.

Post-Installation

After enabling the module:
Use your website normally to generate query data (important)
Navigate to:
/admin/reports/db-performance
Review collected queries and statistics

Important note:
The module needs real usage data to provide meaningful insights. It is recommended to let the site run under typical traffic conditions before analyzing results or applying optimizations.
No initial configuration is required, but optional settings (such as slow query threshold) may be added in future versions.

Additional Requirements

No additional modules or external libraries are required.

This module works with Drupal core and supports standard database drivers (MySQL, MariaDB, PostgreSQL).

The module works standalone, but can be complemented by:
Devel (for general debugging)
Webprofiler (for request-level profiling)
These tools provide broader insights, while DB Performance focuses specifically on database optimization.

Similar projects

Some modules and tools provide partial overlap:
Devel / Webprofiler: show queries but do not aggregate or suggest optimizations
External tools (New Relic, Blackfire): provide deep profiling but require external services

DB Performance differs by:
working directly inside Drupal
aggregating queries over time
focusing specifically on index suggestions and database tuning

Supporting this Module

If you find this module useful, you can support development by:
reporting issues
suggesting improvements
contributing patches

Activity

Total releases
2
First release
Mar 2026
Latest release
1 month ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Mar 18, 2026
1.0.0-alpha1 Pre-release Mar 18, 2026