Drupal is a registered trademark of Dries Buytaert
seven 2.0.0-beta6 New beta version released for theme seven (2.0.0-beta6). seven 1.0.1-beta1 First beta version released for theme seven (1.0.1-beta1). eca 3.1.0-beta2 New beta version released for module eca (3.1.0-beta2). swiper_formatter 2.1.1 Minor update available for module swiper_formatter (2.1.1). solo 1.0.31 Minor update available for theme solo (1.0.31). raven 7.3.7 Minor update available for module raven (7.3.7). basket_imex 10.2.2 Minor update available for module basket_imex (10.2.2). views_rest_field_grouping 2.1.0 Minor update available for module views_rest_field_grouping (2.1.0). convene_theme 1.0.10 Minor update available for theme convene_theme (1.0.10). advanced_header_field 3.0.1 Minor update available for module advanced_header_field (3.0.1). kordiam 1.0.13 Minor update available for module kordiam (1.0.13). varbase_components 2.0.16 Minor update available for module varbase_components (2.0.16). node_singles 3.4.7 Minor update available for module node_singles (3.4.7). flowdrop 1.1.1 Minor update available for module flowdrop (1.1.1). emporiqa 1.0.20 Minor update available for module emporiqa (1.0.20). digital_asset_inventory 1.1.1 Minor update available for module digital_asset_inventory (1.1.1). diba_integration 1.2.6 Minor update available for module diba_integration (1.2.6). localgov_scarfolk 2.0.0 Major update available for theme localgov_scarfolk (2.0.0). entity_extra_field 2.1.4 Minor update available for module entity_extra_field (2.1.4). plugin_configuration_field 1.0.2 Minor update available for module plugin_configuration_field (1.0.2).

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
12 hours 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