Database » DO_NOT_UPGRADE_GLOBAL_TABLES

DO_NOT_UPGRADE_GLOBAL_TABLES

DO_NOT_UPGRADE_GLOBAL_TABLES is a WordPress constant that can be added to the wp-config.php file in order to avoid the upgrade functions from doing expensive queries against global tables.

To enable it, simply add the following to your wp-config.php file:

define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true );

WordPress websites that use bbPress have large users and usermeta tables. When upgrades are running, ALTER, DELETE or UPDATE queries have to go through all data in those tables in the database. This can take a long time to complete and may slow down website speed while an upgrade is running. To avoid this, you can use DO_NOT_UPGRADE_GLOBAL_TABLES

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended