Query issues

This topic contains 10 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #486006

    Iain Brewster
    Expired Member
    Post count: 74

    Hi there

    The below query was run by geodirectory and my hosting provider advised it was due to

    “wp_geodir_post_locations is missing a proper key in the query and in the above case the query had been running for 1.5 hours”

    Are you able to advise if something needs fixing?

    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

    #486022

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

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

    Paolo
    Site Admin
    Post count: 31206

    Would you mind sharing Cpanel and wp admin credentials so that our developer can have another look?

    Thanks

    #486187

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

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #486193

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

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
    #486202

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

    Iain Brewster
    Expired Member
    Post count: 74

    Hi Paolo. No need to look into this now. I believe I have resolved the issue.

    As always thanks for your responses and a great plugin 🙂

    #486566

    Alex Rollin
    Moderator
    Post count: 27815

    Ok

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

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

Open Support Ticket