Query sending data

This topic contains 5 replies, has 4 voices, and was last updated by  Kiran 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #487269

    Iain Brewster
    Expired Member
    Post count: 74

    Hi the below query keeps getting stuck sending data in mysql.

    It will get stuck in sending data for a few hours then another of the same query will appear then another all building up and leading to an error on the site.

    I have deactivated and re started plugins which worked for a while then I re uploaded my theme which again worked for a while

    But now the problem persists.

    Can I ask what runs this query so I can better understand of how I can resolve this once and for all?

    I know it’s gonna be something simple but it’s driving me crazy.

    I’m using geotravel theme and recently upgraded from v1 to v2
    Thanks

    SELECT tt.term_id, MAX(p.post_modified_gmt) AS date_gmt, l.country_slug AS country FROM wp_geodir_post_locations l LEFT JOIN wp_geodir_gd_place_detail pd ON pd.country = l.country LEFT JOIN wp_posts p ON p.ID = pd.post_id LEFT JOIN

    wp_term_relationships

    AS tr ON tr.object_id = p.ID LEFT JOIN

    wp_term_taxonomy

    AS tt ON ( tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = ‘gd_placecategory’ ) WHERE p.post_type = ‘gd_place’ AND p.post_status = ‘publish’ AND l.location_id IS NOT NULL AND tt.term_id IS NOT NULL GROUP BY CONCAT(tt.term_id, ‘-‘, l.country_slug) ORDER BY date_gmt DESC

    #487272

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for your inquiry, I have flagged your topic for the developers.

    #487288

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #487302

    Iain Brewster
    Expired Member
    Post count: 74
    This reply has been marked as private.
    #487306

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    This looks like the yoast sitemap queries, i’ll flag this for kiran on monday, but if ur server can’t handel it then it might need to be turned off.

    Stiofan

    #489450

    Kiran
    Moderator
    Post count: 7069

    Hi Iain,

    On which page you found this query stuck the mysql? In Yoast SEO sitemap or any other frontend page?

    You can disable locations in sitemap from GeoDirectory > Settings > Locations > Settings > Yoast SEO sitemap > Exclude location pages(posts types, categories, tags)

    Let us know.

    Kiran

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket