Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

DB Maintenance

3,346 sites Security covered
View on drupal.org

This module optimizes selected database tables during cron runs to improve performance. It defragments tables for MySQL and PostgreSQL databases, effectively reclaiming disk space and potentially speeding up operations, especially on tables with frequent data changes.

DB maintenance optimizes administrator-selected tables in the database during regular cron.php executions. For MyISAM tables, OPTIMIZE TABLE repairs a table if it has deleted or split rows, sorts table indexes, and updates table statistics. For BDB and InnoDB, OPTIMIZE rebuilds the table. Note, MySQL locks tables during the time OPTIMIZE TABLE is running.

OPTIMIZE works best on tables with large deletions (e.g. cache or watchdog), however MySQL will reuse old record positions, therefore in most setups, OPTIMIZE TABLE is unnecessary unless you just like defragmenting. The Overhead column in phpMyAdmin's database view is the most common way to determine the need of an OPTIMIZE TABLE query. It essentially shows the amount of disk space you would recover by running an optimize/defragmentation query.

Think of OPTIMIZE TABLE like defragmenting your hard drive. Sure your system will run without it, and it might even be fast, but isn't it nice to run a defrag when you can?

6.x+ PostgreSQL support: Per PostgreSQL documentation's recommendation, this module does not use the VACUUM FULL operation that locks the tables; this module can operate in parallel with normal reading and writing of PostgreSQL tables.

If you are using prefixed tables you will need to upgrade to 7.x-2.4, 8.x-1.4, 2.0.x for this module to work correctly.

Similar project: OptimizeDB.

7.x-2.x

7.x-2.x branch is released. The module has been completely rewritten in object-oriented Drupal 8 style. This is an intermediate stage for Drupal 8 module version. For Drupal 8 OOP (Object Oriented Programming) style in Drupal 7 version X Autoload module >=7.x-5.0 is required. Module functionality remains the same. People, who are OK with 7.x-1.x may continue using it. But new development is in 7.x-2.x.

8.x-1.x

Drupal 8 version of the module is available. It is a 7.x-2.x version upgraded to D8. Module functionality remains the same.

2.0.x

Drupal 9 version of the module is available. It is a 8.x-1.x patched version. We also switch to semantic versioning to ensure future 9||10 API compatibility. Module functionality remains the same.

3.0.x

Drupal ^10 version of the module.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Nov 2023
Latest release
3 weeks ago
Releases (12 mo)
4 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.0-rc6 Pre-release 8–11 Sep 16, 2026
3.0.0-rc4 Pre-release 8–11 May 29, 2026
3.0.0-rc3 Pre-release 8–11 May 18, 2026
3.0.x-dev Dev 8–11 May 18, 2026
3.0.0-rc2 Pre-release 8–11 Feb 27, 2025
3.0.0-rc1 Pre-release 8–10 Nov 17, 2023