Sitemap MySQL queries – significant performance hit

#649835
  • Resolved E Stokes
    Rank Math free

    The sitemap generation feature of Rank Math seems to be the cause of significant server performance issues. The query posted below takes between 5 seconds and ~2 minutes to return. Our website (news) has 128,671 published posts and counting. The query is being run at varying intervals, peaking at ~20 queries per minute, and dropping to ~1-2 queries per minute when performance is poor.

    We host on WPEngine on their P6 plan

    Do you have any suggestions?

    Query
    SELECT l.ID, post_title, post_content, post_name, post_parent, post_author, post_modified_gmt, post_date, post_date_gmt, post_type FROM ( SELECT DISTINCT p.ID FROM wp_posts as p LEFT JOIN wp_postmeta AS pm ON ( p.ID = pm.post_id AND pm.meta_key = ? ) WHERE ( ( pm.meta_key = ? AND pm.meta_value NOT LIKE ? ) OR pm.post_id IS NULL ) AND p.post_type IN ( ? ) AND p.post_status = ? AND p.post_password = ? ORDER BY p.post_modified DESC LIMIT ? OFFSET ? ) o JOIN wp_posts l ON l.ID = o.ID

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

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    We’ve already shared the issue with our developers and they are investigating it.

    For now, you can try to disable the Sitemap module of our plugin from WordPress Dashboard > Rank Math > Dashboard > Modules.

    We really appreciate your kind patience regarding this matter.

    Thank you.

    Hello,

    As a follow-up. for further troubleshooting, we might need to take a closer look at the settings of your website. In this case, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section so that we can check the issue further for you.

    Looking forward to helping you.

    Thank you.

    Thanks, I have already disabled the sitemap feature and performance returned to normal levels. We are not able to share access to the website.

    Hello,

    Are you able to create a staging website and reproduce the error there instead?

    At the moment, we aren’t able to reproduce this issue on our end so we need to check your setup and how Rank Math is causing slowdown.

    We are 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Sitemap MySQL queries – significant performance hit’ is closed to new replies.