{"id":463019,"date":"2023-07-25T08:58:24","date_gmt":"2023-07-25T06:58:24","guid":{"rendered":"https:\/\/wp-rocket.me\/?p=463019\/"},"modified":"2024-11-06T08:36:33","modified_gmt":"2024-11-06T07:36:33","slug":"make-wordpress-database-clean-whistle","status":"publish","type":"post","link":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/","title":{"rendered":"How to Clean Up and Optimize a WordPress Database"},"content":{"rendered":"<p>Are you experiencing any performance issues on WordPress? Cleaning up your database is a necessary step in your optimization journey. If you\u2019ve been using WordPress for a while, chances are your database is cluttered and filled with tables you no longer need. It looks like it\u2019s time for a clean-up! But where to begin? Which content can be deleted without compromising the smooth running of your website? That\u2019s precisely the purpose of this guide: you\u2019ll understand which content you can delete and how to optimize your WordPress database.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1222\" height=\"966\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket-.png\" alt=\"WordPress database clean-up - Source: WP Rocket\n\" class=\"wp-image-5811720\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket-.png 1222w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket--247x195.png 247w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket--768x607.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket--76x60.png 76w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-clean-up-Source-WP-Rocket--114x90.png 114w\" sizes=\"(max-width: 1222px) 100vw, 1222px\" \/><figcaption class=\"wp-element-caption\">WordPress database clean-up &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket<\/a><br><\/figcaption><\/figure><h2 class=\"wp-block-heading\">Why Clean Your WordPress Database<\/h2><p>Cleaning your database makes it run more efficiently and helps boost performance by clearing up significant space. If you delete all the stale and outdated data, you can remove the bloat accumulated over time (which could have harmed loading times).&nbsp;<\/p><p>Your WordPress database is a mix of all your site\u2019s essential content, including themes, plugins, comments, posts, pages, and revisions. While some elements should never be deleted, it will not harm to trim the excess of old information around three main optimization areas:&nbsp;<\/p><ol class=\"wp-block-list\"><li>Reduce the database size from unnecessary entries&nbsp;<\/li>\n\n<li>Index fewer data on tables subject to clean up<\/li>\n\n<li>Rebuild indexes<\/li><\/ol><p>By following those three rules, you\u2019ll optimize your database, improve the performance of your website and significantly reduce server loads.<\/p><figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\ud83d\udca1Did you know?<\/strong> Cleaning up your WordPress database may also <a href=\"https:\/\/wp-rocket.me\/blog\/how-to-fix-slow-wordpress-admin\/\">fix a slow WordPress admin<\/a>.&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure><p>Let\u2019s go over the 10 applicable tips you can use for a good clean-up of your WordPress database.&nbsp;<\/p><h2 class=\"wp-block-heading\">10 Best Practices to Clean and Optimize a Database on WordPress<\/h2><p>With WordPress, you can optimize your database in a few different ways. We have put together 10 best practices you can follow to clean up your WordPress tables \u2013 and it should always start with a backup!<\/p><h3 class=\"wp-block-heading\">1. Backup Your Database<\/h3><p>Always take a database backup before starting the cleanup and deleting any tables. If you happen to remove the wrong data, the whole website could go down. You can use FTP, your hosting panel, or a WordPress plugin like UpdraftPlus to complete this task and be on the safe side.<\/p><h3 class=\"wp-block-heading\">2. Delete Old Plugins, Themes, and Post Data<\/h3><p>If you decide not to use a plugin or a theme, we recommend you delete them and all their data.&nbsp;<\/p><p>To delete unused plugins, go to <strong>Plugins \u2192 Installed Plugins<\/strong>. Then, click <strong>Delete<\/strong> under any plugins you\u2019d like to remove. Follow the same path from <strong>Appearance \u2192 Themes<\/strong> if you want to delete all the themes.&nbsp;<\/p><p>In the same spirit, get rid of the posts and pages that have been sitting too long in your admin, and that will never be published.&nbsp;<\/p><h3 class=\"wp-block-heading\">3. Delete or Limit Post Revisions<\/h3><p>WordPress allows you to control how many revisions you want to keep for an article, which can be very handy if you need to restore an older version.&nbsp;To limit post revisions manually, simply add this code to your WordPress site\u2019s <a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-edit-wp-config-php-file-in-wordpress\/\">wp-config.php file<\/a>:&nbsp;<\/p><pre class=\"wp-block-code\"><code class=\"\">define( 'WP_POST_REVISIONS', yournumberhere )\n<\/code><\/pre><h3 class=\"wp-block-heading\">4. Delete Spammy and Unapproved Comments<\/h3><p>Everybody who owns a WordPress blog knows how annoying it can be to get spam comments. Don\u2019t let them pile up; delete them immediately to avoid clutter. Similarly, if you don\u2019t approve a comment, make sure it gets deleted from the admin. Some anti-spam plugins like Akismet may be your best ally.&nbsp;<\/p><p>You can use phpMyAdmin to bulk delete all the spam comments by opening the WordPress_Comments table as shown below.<\/p><p>(\ud83d\udc49<em>Jump to <a href=\"#php\">our full phpMyAdmin tutorial<\/a> for clearing-up database<\/em>)<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"487\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-comments-table-Source-onehosting-.png\" alt=\"WordPress comments table - Source: onehosting\n\" class=\"wp-image-5811734\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-comments-table-Source-onehosting-.png 720w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-comments-table-Source-onehosting--288x195.png 288w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-comments-table-Source-onehosting--89x60.png 89w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-comments-table-Source-onehosting--133x90.png 133w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><figcaption class=\"wp-element-caption\">WordPress comments table &#8211; Source: <a href=\"https:\/\/help.one.com\/hc\/en-us\/articles\/360010240198-How-do-I-remove-spam-comments-from-WordPress-\">onehosting<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">5. Delete Unused Tags<\/h3><p>Tags help organize your website\u2019s content by categories. It can help a visitor in the navigation and the overall user experience. However, if some tags become obsolete, delete them from the tags section accessible from the <strong>posts<\/strong> &gt; <strong>tags <\/strong>section.&nbsp;<\/p><h3 class=\"wp-block-heading\">6. Delete Old Shortcodes<\/h3><p>Shortcodes are handy to add extra functionality to WordPress posts and pages without writing any code. But what happens if you delete the plugin or don\u2019t want to use a shortcode? Your website gets unnecessarily bloated, and the visitors may see the hooks of the shortcode instead of the content:<\/p><pre class=\"wp-block-code\"><code class=\"\">[some-random-shortcode-seen-by-visitors]<\/code><\/pre><p>One of the solutions would be to go manually through the list of shortcodes and delete all the unused ones. Another way would be to use a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/shortcodes-finder\/\">Shortcodes Finder<\/a> that lets you find and optimize all your shortcodes.&nbsp;<\/p><h3 class=\"wp-block-heading\">7. Delete Pingbacks and Trackbacks<\/h3><p>When your site includes a URL linking to another site, this sends an automatic server notification called a \u201cpingback\u201d. Trackbacks and pingbacks are methods for alerting blogs that you have linked to them, and the messages can fill up the database. To fix this issue, you need to disable both by heading to <strong>Settings &gt; Discussion<\/strong> in WordPress and deactivate the first two settings:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"1053\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket-.png\" alt=\"Deactivating trackbacks and pingbacks - Source: WP Rocket\n\" class=\"wp-image-5811746\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket--310x163.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket--768x405.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket--114x60.png 114w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Deactivating-trackbacks-and-pingbacks-Source-WP-Rocket--171x90.png 171w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">Deactivating trackbacks and pingbacks &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">8. Delete Transients<\/h3><p>Transients are a type of temporary data cache, so you can use them to store data, but only for a while. You can check how many transients are being stored in your database tables by using phpMyAdmin, then you can search for the following option name in the database:<\/p><pre class=\"wp-block-code\"><code class=\"\">_ transient _%<\/code><\/pre><p>Then, delete all the transient tables manually from the dashboard. You can also manage and delete transients in WordPress by using the <a href=\"https:\/\/wordpress.org\/plugins\/transients-manager\/\">Transients Manager plugin<\/a>.&nbsp;<\/p><h3 class=\"wp-block-heading\">9. Clean Orphan Data&nbsp;<\/h3><p>Orphaned data can appear in various forms within your database, such as unused metadata, unused terms or tags, unattached media files, and more. These data fragments take up valuable space and can clutter your database. An example of orphan data is a piece of information that still sits on an organization&#8217;s network (or server) but was created and owned by a now-deactivated employee.<\/p><p>You can use a plugin like WP-Optimize or WP Sweeper to clean orphan data. If you prefer to do it manually using a MySQL request, we recommend you read this tutorial about <a href=\"https:\/\/mehulgohil.com\/blog\/orphaned-data\/\">how to find the orphan data and delete it<\/a>.&nbsp;<\/p><h3 class=\"wp-block-heading\">10. Optimize Tables<\/h3><p>The ultimate point of the database optimization journey is cleaning up the tables. WordPress has 11 tables by default, but more will be added according to the theme and plugin you install.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1352\" height=\"898\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket-.png\" alt=\"WordPress database tables by default - Source: WP Rocket\" class=\"wp-image-5811784\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket-.png 1352w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket--294x195.png 294w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket--768x510.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket--90x60.png 90w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/WordPress-database-tables-by-default-Source-WP-Rocket--136x90.png 136w\" sizes=\"(max-width: 1352px) 100vw, 1352px\" \/><figcaption class=\"wp-element-caption\">WordPress database tables by default &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><\/figcaption><\/figure><p>Optimizing a database requires great care, and you must be cautious. We are sharing two ways of doing a full database clean-up: manually with phpMyAdmin or automatically with a WordPress plugin. Let\u2019s go over both methodologies.&nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"php\">How to Optimize Your WordPress Database With phpMyAdmin<\/h2><p>To manually optimize your WordPress database, you will need to login into PHPMyAdmin via your hosting provider and follow the steps below:<\/p><ol class=\"wp-block-list\"><li>Log in to cPanel and open the PHPMyAdmin tool.<\/li>\n\n<li>Select the tables that need to be optimized from the structure tab. You can also select them by checking the \u201cCheck all\u201d box below the table lists.&nbsp;<\/li><\/ol><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"1113\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin-.png\" alt=\"Selecting the tables that need optimization - Source: phpMyAdmin\n\" class=\"wp-image-5811796\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin--310x173.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin--768x428.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin--108x60.png 108w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Selecting-the-tables-that-need-optimization-Source-phpMyAdmin--162x90.png 162w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">Selecting the tables that need optimization &#8211; Source: <a href=\"https:\/\/demo.phpmyadmin.net\/master-config\/public\/index.php?route=\/database\/structure&amp;db=mysql\">phpMyAdmin<\/a><br><\/figcaption><\/figure><p>3. Once the tables are selected, open the dropdown menu located next to the <strong>Check all <\/strong>button:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"1126\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin-.png\" alt=\"\" class=\"wp-image-5811802\" style=\"width:497px;height:563px\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin-.png 994w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin--172x195.png 172w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin--768x870.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin--53x60.png 53w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-dropdown-menu-to-select-the-different-options-Source-phpMyAdmin--79x90.png 79w\" sizes=\"(max-width: 994px) 100vw, 994px\" \/><figcaption class=\"wp-element-caption\">The dropdown menu to select the different options &#8211; Source: <a href=\"https:\/\/demo.phpmyadmin.net\/master-config\/public\/index.php?route=\/database\/structure&amp;db=mysql\">phpMyAdmin<\/a><br><\/figcaption><\/figure><\/div><p>4. Select the <strong>Optimize table<\/strong> option:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"744\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin-.png\" alt=\"\" class=\"wp-image-5811811\" style=\"width:461px;height:372px\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin-.png 922w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin--242x195.png 242w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin--768x620.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin--74x60.png 74w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Optimize-table-option-Source-PHPmyAdmin--112x90.png 112w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><figcaption class=\"wp-element-caption\">Optimize table option &#8211; Source: <a href=\"https:\/\/demo.phpmyadmin.net\/master-config\/public\/index.php?route=\/database\/structure&amp;db=mysql\">PHPmyAdmin<\/a><br><\/figcaption><\/figure><\/div><p>5. Once the database has been cleaned up and optimized, you should get this success message:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"604\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin-.png\" alt=\"Clean up database\u2019s confirmation message - Source: phpMyAdmin\n\" class=\"wp-image-5811823\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin--310x94.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin--768x232.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin--190x57.png 190w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Clean-up-databases-confirmation-message-Source-phpMyAdmin--298x90.png 298w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">Clean up database\u2019s confirmation message &#8211; Source: <a href=\"https:\/\/demo.phpmyadmin.net\/master-config\/public\/index.php?route=\/database\/structure&amp;db=mysql\">phpMyAdmin<\/a><br><\/figcaption><\/figure><p>If you need to delete a whole database, head to the <strong>Databases <\/strong>tab, select the tables to delete, and click on the<strong> Drop <\/strong>button:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"941\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin-.png\" alt=\"Delete a table - Source: phpMyAdmin\n\" class=\"wp-image-5811830\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin--310x146.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin--768x362.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin--127x60.png 127w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Delete-a-table-Source-phpMyAdmin--191x90.png 191w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">Delete a table &#8211; Source: <a href=\"https:\/\/demo.phpmyadmin.net\/master-config\/public\/index.php?route=\/database\/structure&amp;db=mysql\">phpMyAdmin<\/a><br><\/figcaption><\/figure><div id=\"om-jbyojf9wimyywstllxy9-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'jbyojf9wimyywstllxy9')<\/script><h2 class=\"wp-block-heading\">How to Optimize Your WordPress Database With a WordPress Plugin<\/h2><p>The easiest and safest way to clean your database is to use a WordPress plugin. It will do the heavy lifting for you, and you won\u2019t need to touch any of the tables to start your optimization journey. The best plugins to optimize your WordPress database are:&nbsp;<\/p><ol class=\"wp-block-list\"><li><a href=\"#wp-rocket\">WP Rocket<\/a><\/li>\n\n<li><a href=\"#advanced-database-cleanser\">Advanced Database Cleanser<\/a><\/li>\n\n<li><a href=\"#wp-optimize\">WP-Optimize<\/a><\/li>\n\n<li><a href=\"#wp-sweep\">WP-Sweep<\/a><\/li>\n\n<li><a href=\"#perfmatters\">Perfmatters<\/a><\/li><\/ol><p>Let\u2019s briefly see how database optimization works for each of them!<\/p><h3 class=\"wp-block-heading\" id=\"wp-rocket\">1. <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><\/h3><p>One of the best caching plugins for WordPress that will optimize your database in one click. It\u2019s also the most powerful extension to boost your loading time, improve your PageSpeed performance score, and <a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\">optimize your Core Web Vitals<\/a>.&nbsp;<\/p><p>From the WordPress dashboard, open the <strong>Database<\/strong> tab and select the advanced options of your choice. There&#8217;s no limit to the number of revisions you can apply. You can also trash the spammy comments and transients and schedule an automatic daily, weekly, or monthly clean-up.\u00a0<\/p><figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1638\" height=\"1984\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket-.png\" alt=\"The database optimization tab - Source: WP Rocket\n\" class=\"wp-image-5811839\" style=\"width:819px;height:992px\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket-.png 1638w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket--161x195.png 161w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket--768x930.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket--50x60.png 50w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Rocket--74x90.png 74w\" sizes=\"(max-width: 1638px) 100vw, 1638px\" \/><figcaption class=\"wp-element-caption\">The database optimization tab &#8211; Source: <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\" id=\"advanced-database-cleanser\">2. <a href=\"https:\/\/wordpress.org\/plugins\/advanced-database-cleaner\/\">Advanced Database Cleanser<\/a><\/h3><p>One of the most complete plugins that focuses <em>only <\/em>on database optimization. It will clean up your database by deleting orphaned items such as \u201cold revisions\u201d, \u201cspam comments\u201d and more advanced options. From the first tab, you can do a general clean-up:<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1902\" height=\"1278\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser-.png\" alt=\"The database optimization tab - Source: Advanced Database Cleanser\n\" class=\"wp-image-5811849\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser-.png 1902w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser--290x195.png 290w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser--768x516.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser--89x60.png 89w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-Advanced-Database-Cleanser--134x90.png 134w\" sizes=\"(max-width: 1902px) 100vw, 1902px\" \/><figcaption class=\"wp-element-caption\">The database optimization tab &#8211; Source: <a href=\"https:\/\/wordpress.org\/plugins\/advanced-database-cleaner\/\">Advanced Database Cleanser<\/a><br><\/figcaption><\/figure><p>If you want to be more thorough in the optimization, open the second tables tab and manually select the table that needs cleaning.&nbsp;<\/p><h3 class=\"wp-block-heading\" id=\"wp-optimize\">3. <a href=\"https:\/\/wordpress.org\/plugins\/wp-optimize\/\">WP-Optimize<\/a><\/h3><p>WP-Optimize cleans the database, compresses images, and also caches pages. It clears out unnecessary data, cleans up your tables, and retrieves space lost to data fragmentation. There are also some stats about the database and the potential savings you could get after the optimization.&nbsp;<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"1111\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize-.png\" alt=\"The database optimization tab - Source: WP-Optimize\n\n\" class=\"wp-image-5811860\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize--310x172.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize--768x427.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize--108x60.png 108w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/The-database-optimization-tab-Source-WP-Optimize--162x90.png 162w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">The database optimization tab &#8211; Source: <a href=\"https:\/\/wordpress.org\/plugins\/wp-optimize\/\">WP-Optimize<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\" id=\"wp-sweep\">4. <a href=\"https:\/\/wordpress.org\/plugins\/wp-sweep\/\">WP-Sweep<\/a><\/h3><p>The plugin lets you clean up unused, orphaned, and duplicated data in your WordPress database. It cleans up revisions, auto drafts, unapproved comments, spam comments, and more.&nbsp; It also optimizes your database tables quickly and efficiently.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"1008\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep-.png\" alt=\"Database optimization - Source: WP-Sweep\n\" class=\"wp-image-5811877\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep-.png 1999w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep--310x156.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep--768x387.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep--119x60.png 119w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-optimization-Source-WP-Sweep--178x90.png 178w\" sizes=\"(max-width: 1999px) 100vw, 1999px\" \/><figcaption class=\"wp-element-caption\">Database optimization &#8211; Source: <a href=\"https:\/\/wordpress.org\/plugins\/wp-sweep\/\">WP-Sweep<\/a><br><\/figcaption><\/figure><h3 class=\"wp-block-heading\" id=\"perfmatters\">5. <a href=\"https:\/\/perfmatters.io\/\">Perfmatters<\/a><\/h3><p>Perfmatters is a premium WordPress plugin that comes with a dedicated database tab. In terms of optimization, you can disable or limit the number of <a href=\"https:\/\/perfmatters.io\/docs\/disable-limit-post-revisions-wordpress\/\">post revisions<\/a> that WordPress stores or automatically delete the spam comments to keep your database always clean.&nbsp;<\/p><figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1420\" height=\"1390\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters-.png\" alt=\"Database cleaning interface - Source: Perfmatters\n\" class=\"wp-image-5811887\" style=\"width:710px;height:695px\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters-.png 1420w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters--199x195.png 199w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters--768x752.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters--61x60.png 61w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2023\/07\/Database-cleaning-interface-Source-Perfmatters--92x90.png 92w\" sizes=\"(max-width: 1420px) 100vw, 1420px\" \/><figcaption class=\"wp-element-caption\">Database cleaning interface &#8211; Source: <a href=\"https:\/\/perfmatters.io\/\">Perfmatters<\/a><br><\/figcaption><\/figure><h2 class=\"wp-block-heading\">Wrapping Up<\/h2><p>As a final note, there is one golden rule to follow; you should always keep only relevant information stored in the database and lower resource usage. You can achieve better performance and maintain good database health by regularly deleting outdated data.<br><br>If you have a technical background, optimizing your database using phpMyAdmin should be straightforward. But if you are looking for an automated tool that does the job for you, you can try <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket<\/a>. It has a dedicated section to completely optimize your database (e.g., the posts, the comments, the transients.). WP Rocket goes beyond database clean-up and offers caching, advanced JS and CSS optimization, lazy loading, and much more. If you want to speed up your WordPress site, and clear your code and database in a few clicks, WP Rocket is the right choice. Plus, you don\u2019t take any risks with the 30-day money-back guarantee.&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here&#8217;s how.<\/p>\n","protected":false},"author":188114,"featured_media":1483375,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"kia_subtitle":"","footnotes":""},"categories":[63],"tags":[],"class_list":["post-463019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-cache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress Database: How to Clean It up and Optimize It<\/title>\n<meta name=\"description\" content=\"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here&#039;s how.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Database: How to Clean It up and Optimize It\" \/>\n<meta property=\"og:description\" content=\"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here&#039;s how.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T06:58:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-06T07:36:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Marine Larmier\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marine Larmier\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\"},\"author\":{\"name\":\"Marine Larmier\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a\"},\"headline\":\"How to Clean Up and Optimize a WordPress Database\",\"datePublished\":\"2023-07-25T06:58:24+00:00\",\"dateModified\":\"2024-11-06T07:36:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\"},\"wordCount\":1812,\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png\",\"articleSection\":[\"Page speed and caching\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\",\"url\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\",\"name\":\"WordPress Database: How to Clean It up and Optimize It\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png\",\"datePublished\":\"2023-07-25T06:58:24+00:00\",\"dateModified\":\"2024-11-06T07:36:33+00:00\",\"description\":\"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here's how.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png\",\"width\":1100,\"height\":460,\"caption\":\"Database Optimization\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page speed and caching\",\"item\":\"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Clean Up and Optimize a WordPress Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a\",\"name\":\"Marine Larmier\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g\",\"caption\":\"Marine Larmier\"},\"description\":\"I have six years of experience writing and producing rich SEO content in the WordPress ecosystem. I worked remotely for four years at WPML while traveling the world. Based between France and New Zealand, I love traveling, yoga, sunsets, and world cuisine.\",\"sameAs\":[\"https:\/\/wp-rocket.me\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Database: How to Clean It up and Optimize It","description":"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here's how.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Database: How to Clean It up and Optimize It","og_description":"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here's how.","og_url":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_published_time":"2023-07-25T06:58:24+00:00","article_modified_time":"2024-11-06T07:36:33+00:00","og_image":[{"width":1100,"height":460,"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png","type":"image\/png"}],"author":"Marine Larmier","twitter_card":"summary_large_image","twitter_creator":"@wp_rocket","twitter_site":"@wp_rocket","twitter_misc":{"Written by":"Marine Larmier","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#article","isPartOf":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/"},"author":{"name":"Marine Larmier","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a"},"headline":"How to Clean Up and Optimize a WordPress Database","datePublished":"2023-07-25T06:58:24+00:00","dateModified":"2024-11-06T07:36:33+00:00","mainEntityOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/"},"wordCount":1812,"publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png","articleSection":["Page speed and caching"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/","url":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/","name":"WordPress Database: How to Clean It up and Optimize It","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png","datePublished":"2023-07-25T06:58:24+00:00","dateModified":"2024-11-06T07:36:33+00:00","description":"Is your WordPress site running slow? Optimizing your database can clean up unnecessary data so your site runs faster and more efficiently. Here's how.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/databases.png","width":1100,"height":460,"caption":"Database Optimization"},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/blog\/make-wordpress-database-clean-whistle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Page speed and caching","item":"https:\/\/wp-rocket.me\/blog\/wordpress-cache\/"},{"@type":"ListItem","position":3,"name":"How to Clean Up and Optimize a WordPress Database"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]},{"@type":"Person","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/ad9f21665968e3071cede8110604959a","name":"Marine Larmier","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a77fe97a09a2f3875dbeb05e59c757f?s=96&d=mm&r=g","caption":"Marine Larmier"},"description":"I have six years of experience writing and producing rich SEO content in the WordPress ecosystem. I worked remotely for four years at WPML while traveling the world. Based between France and New Zealand, I love traveling, yoga, sunsets, and world cuisine.","sameAs":["https:\/\/wp-rocket.me\/"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/463019"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/users\/188114"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/comments?post=463019"}],"version-history":[{"count":0,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/posts\/463019\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media\/1483375"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=463019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/categories?post=463019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/tags?post=463019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}