• Resolved KVNHNF

    (@kvnhnf)


    Hello, I have seen numerous topics most without any replies on this subject.

    Yoast is generating slow queries. I have checked the server MySQL slow log and there have been 11 slow database queries all towards the users and usermeta tables of my website’s database.

    The queries appear to be running slow due to the amount of examined rows – 200 000 to over 2 million rows per query, which is a very high number, given that the users table is just over 1100 rows and the usermeta about 39 000 rows.

    SELECT DISTINCT wp_users.ID FROM wp_users LEFT JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id ) LEFT JOIN wp_usermeta AS mt1 ON ( wp_users.ID = mt1.user_id ) LEFT JOIN wp_usermeta AS mt2 ON ( wp_users.ID = mt2.user_id ) LEFT JOIN wp_usermeta AS mt3 ON (wp_users.ID = mt3.user_id AND mt3.meta_key = ‘wpseo_noindex_author’ ) LEFT JOIN wp_usermeta AS mt4 ON ( wp_users.ID = mt4.user_id ) WHERE 1=1 AND (
    (
    (
    wp_usermeta.meta_key = ‘_yoast_wpseo_profile_updated’
    AND
    (
    ( mt1.meta_key = ‘wp_user_level’ AND mt1.meta_value != ‘0’ )
    AND
    (
    ( mt2.meta_key = ‘wpseo_noindex_author’ AND mt2.meta_value != ‘on’ )
    OR
    mt3.user_id IS NULL
    )
    )
    )
    AND
    ( mt4.meta_key = ‘wp_user_level’ AND mt4.meta_value != ‘0’ )
    )
    ) ORDER BY wp_usermeta.meta_value+0 DESC;

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @kvnhnf Please do not create duplicate topics. Those get removed when found and I have removed your new one.

    If you have something to add please do so here.

    @kvnhnf

    Hi,

    We apologize for the difficulties you are having with the plugin. We would like some more information.

    1. Can you confirm you are using the most recent Yoast SEO, v13.1? If you update, does the issue resolve?

    2. Can you confirm you are using WordPress 5.3.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider.?Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast.?This guide explains more:?https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    3. Are all your non-Yoast plugins and themes also updated?

    4. Can you confirm your server has all the right requirements? ?If you are not sure, speak to your host provider. This guide explains more:?https://kb.yoast.com/kb/plugin-requirements/.

    Thread Starter KVNHNF

    (@kvnhnf)

    hi, sorry about the duplicates

    yes everything is up to date

    can you please confirm that setting author archives settings to disabled under search appearance > archives

    will disable author sitemaps?

    This is happening since the last yoast update

    BR

    Plugin Support amboutwe

    (@amboutwe)

    Disabling the author archives also removes the author sitemap.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Yoast SEO generates slow queries’ is closed to new replies.