> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Optimizing WordPress database

> Discover how to optimize your WordPress database with ease using the Optimize Database after Deleting Revisions plugin.

The Optimize Database after Deleting Revisions Plugin is a utility that will assist you in keeping your WordPress database clean and optimized.This plugin allows you to exclude specific posts or pages from having revisions deleted, as well as select which database tables will be optimized. This article will show you how to install and configure [WordPress](https://hosting.com/hosting/platforms/wordpress-hosting/managed-wordpress-hosting/) databases using The Optimize Database after Deleting Revisions Plugin.

## Optimizing WordPress Database

To install Optimize Database after Deleting Revisions Plugin in WordPress website, follow these steps:

1. Log in to WordPress as the administrator.

2. On the **Dashboard** in the left sidebar, click **Plugins**, and then click **Add New**:\
   ![](https://static.hosting.com/kb/kb_wp_addnewplugin_database_optimization.png)

3. Search for "optimize database" click **Install**, and then click **Activate** the plugin:\
   ![](https://static.hosting.com/kb/kb_wp_optimizedatabase_install.png)

4. On the **Dashboard** in the left sidebar, click **Settings**, and then click **Optimize Database**:\
   ![](https://static.hosting.com/kb/kb_wp_databaseotimize_setting_menu.png)

5. Configure the **Delete Revisions** for the post types or pages or custom post types, and then click **Save** **Settings**:\
   ![](https://static.hosting.com/kb/kb_wp_databaserevision.png)

<Note>
  Note: Please refer to this\
  [link](https://wordpress.org/plugins/rvg-optimize-database/) to understand the definition for each field on the settings page.
</Note>

6. To exclude database tables from optimization, check the boxes next to the tables and then click **Save Settings**:\
   ![](https://static.hosting.com/kb/kb_wp_optimizedatabasetable.png)

## More information

For more information about the Optimize Database after Deleting Revisions Plugin, please visit [https://wordpress.org/plugins/rvg-optimize-database/](https://wordpress.org/plugins/rvg-optimize-database/)

## Related articles

* [Optimize WordPress sites using WP Fastest Cache](/docs/optimize-wordpress-sites-using-wp-fastest-cache)
