wp_options table size bloat after installing Rankmath

#93240
  • Resolved Bella Williams
    Rank Math free

    Hi Team,

    I am facing a database size issue after the installation of the RankMath plugin.

    Here, the wp_options table size keeps growing from the original 3MB size to 113MB as of now. This growth keeps on being triggered after every few hours.

    The wp_rank_math_sc_analytics is also stable at a high size of 44 MB.

    I have not connected to Google Search Console yet from RankMath and it’s deactivated. I am getting frequent warnings from my hosting account in terms of total database size being beyond the prescribed limits.

    We started having this issue around the 6th of October when our database was taking up 41GB of space.
    If we optimise the table, the size of the wp_options table drops to its original size for a few minutes before growing up back again to a heavy file.

    Please advise.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Sorry for the trouble.

    Is this issue still happening for you with the latest version of Rank Math? We released a new update on the 10th of October where we completely replaced the Search Console module with the new Analytics module, and for example the wp_rank_math_sc_analytics table is not used anymore.

    Can you tell us with what kind of data does the wp_options table get filled? We may need to take a closer look at the issues, is it okay if we install a PhpMyAdmin plugin on your site to check the database?

    Thank you. Looking forward to your response.

    Hi Balazs,
    thanks for looking into it.

    The latest RankMath plugin is updated on the website. Yes, you can install PhpMyAdmin plugin on the site to check the database.

    Hi Bella,

    I have logged in to your site and installed the phpMyAdmin plugin from the official repository, then I took a look at the DB with it.

    Right now your options table is about 1.9 GB, which is quite a lot but not excessive. But 41 GB is definitely too much, I’m not sure what happened there.

    From the 1.9 GB, Rank Math’s rows (17 rows in total) takes up about 30 kb, so basically nothing. You can find the rows created by Rank Math with the following query:
    SELECT * FROM appmpt_options WHERE option_name LIKE 'rank_math_%'

    Then I checked which rows are taking most of the space, using this query:
    SELECT * FROM appmpt_options WHERE 1 ORDER BY LENGTH(option_value) DESC LIMIT 10

    It looks like the largest values seem to be related to the iThemes Security plugin (top 3 rows are itsec_online_files_hashes, itsec_file_change_latest, itsec-storage). But even these are about 2 MB each, so I’m not sure what makes up the 1.9 GB. Perhaps it’s a lot of these 1-2 MB rows (you have a total of 1210 rows in the table right now).

    Since I don’t see any issue related to Rank Math on your site right now, I’m afraid I won’t be able to help here.
    If there’s a specific issue we can see and reproduce, please let us know the steps we need to take, and we will continue our investigation.

    I have deactivated the phpMyAdmin plugin on your site. You can safely delete that plugin.

    Hope that helps. If you have any question, please feel free to ask. Thank you.

    Thanks Balazs for your inputs. The fact is I migrated the SEO to Yoast and this bloating stopped and somehow when I thought it’s all good to bring RankMath back, the bloating up starts at a rapid rate of 1-2 GBs a day.

    The issue goes away when the database table is optimized. Can I delete wp_rank_math_sc_analytics table now?

    Can you help me with the prefix to identify all rankmath tables in the database now?

    Many thanks.

    Hi,

    Was the Analytics/Search Console module active when the issue was happening? If we can take a closer look at the issue and possibly try some changes in the code, we might be able to fix it.

    Yes, you can safely delete the wp_rank_math_sc_analytics table if you are using Rank Math version 1.0.49 or later.

    I’ll list here the tables used by Rank Math:

    wp_rank_math_404_logs
    wp_rank_math_analytics_adsense
    wp_rank_math_analytics_dates
    wp_rank_math_analytics_ga
    wp_rank_math_analytics_gsc
    wp_rank_math_analytics_keyword_manager
    wp_rank_math_analytics_object_links
    wp_rank_math_analytics_objects
    wp_rank_math_internal_links
    wp_rank_math_internal_meta
    wp_rank_math_links
    wp_rank_math_redirections
    wp_rank_math_redirections_cache

    Depending on what modules are active, some of the tables might not be in use. Also, your setup may have a different prefix instead of wp_.

    Hope that helps.

    Hi Balazs,

    Yes, the Analytics module was on when this thing happened with the options table.
    But the search console integration is still not done after the RankMath update.
    Before the update, there was a signup process in which a Google API access was required to be granted to RankMath for the setup. That was duly done a couple of months back.

    Do you still need a peep into the WP admin account? Can share a login link again. Please let me know.

    Hi Bella,

    You need to re-authenticate Rank Math to read and display your Analytics & Search Console Data after you update to 1.0.49 or later, because we changed the Search Console module, along with the permissions it requires from Google.

    Please share the login details and let us know when the “database flooding” is happening again, and we will log in to your site to investigate it.

    Thank you. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘wp_options table size bloat after installing Rankmath’ is closed to new replies.