slow queries

This topic contains 3 replies, has 2 voices, and was last updated by  Stiofan O’Connor 7 years ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #420943

    lisec73
    Full Member
    Post count: 180

    Hi,

    My hosting is telling me I have many slow sql queries happening. I notice a lot of reference to geodirectory in the log but it makes nil sense.

    Any chance you guys know what this means and whether it has to do with any geodirectory plugin.

    Thanks,
    Lise

    === TOP 10 of 472 (total) Slow Queries for the past 24 hours ==========
    1. Executed 7h 14m 48s ago for 57.52962 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:56 Query_time: 57.529620 Rows_examined: 0: Rows_sent 1 Lock_time: 0.000071
    # Schema: guidemea_wp403 Last_errno: 1160 Killed: 0 SELECT COUNT(post_id) FROM x1e_geodir_gd_music_tuition_detail WHERE post_status = ‘publish’ AND post_locations LIKE ‘%,[australia]’ AND post_locations LIKE ‘%,[victoria],%’ AND post_locations LIKE ‘[mallacoota],%’ AND FIND_IN_SET(304, gd_music_tuitioncategory);
    ————————————————————————————————-
    2. Executed 7h 14m 49s ago for 40.154017 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:55 Query_time: 40.154017 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000099
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_location_prefix’ LIMIT 1;
    ————————————————————————————————-
    3. Executed 7h 14m 49s ago for 40.147944 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:55 Query_time: 40.147944 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000077
    # Schema: guidemea_wp403 Last_errno: 1160 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘mobmenu_opt_left_submenu_bg_color’ LIMIT 1;
    ————————————————————————————————-
    4. Executed 7h 14m 49s ago for 38.692348 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:55 Query_time: 38.692348 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000085
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_location_prefix’ LIMIT 1;
    ————————————————————————————————-
    5. Executed 7h 15m 2s ago for 33.016427 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:42 Query_time: 33.016427 Rows_examined: 1: Rows_sent 1 Lock_time: 0.050106
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘wp-smush-last_settings’ LIMIT 1;
    ————————————————————————————————-
    6. Executed 7h 14m 47s ago for 32.290006 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:57 Query_time: 32.290006 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000101
    # Schema: guidemea_wp403 Last_errno: 1160 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘ngg_wizards’ LIMIT 1;
    ————————————————————————————————-
    7. Executed 7h 14m 47s ago for 28.280556 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:31:57 Query_time: 28.280556 Rows_examined: 11956: Rows_sent 7255 Lock_time: 0.273722
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_name, option_value FROM x1e_options WHERE autoload = ‘yes’;
    ——————————————————————————————————–
    8. Executed 7h 14m 58s ago for 20.569919 sec on Database –> Unknown (NOT FOUND / DELETED)
    Date: 2018-03-10 06:31:46 Query_time: 20.569919 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000086
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_location_prefix’ LIMIT 1;
    ————————————————————————————————-
    9. Executed 7h 16m 39s ago for 18.237557 sec on Database –> guidemea_wp403
    Date: 2018-03-10 06:30:05 Query_time: 18.237557 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000128
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_add_listing_link_main_nav’ LIMIT 1;
    ————————————————————————————————-
    10. Executed 7h 15m 4s ago for 17.361367 sec

    #420962

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Lise,

    It looks to me like maybe you have too many listings and not enough resources?
    How many listings do u have and what is your hosting spec?

    Thanks,

    Stiofan

    #421408

    lisec73
    Full Member
    Post count: 180

    Hi,
    I’m on the GoGeek plan from Siteground. I attached the specs with screenshots of the plan.

    I have more than 10 000 listings. (Not making me rich though. It is the start of a charity/not-for-profit project).

    Would it help to e.g. repair my tables? I have optimized the tables already.

    Not sure what specs I would have to look for if I am to upgrade. I seem to be short on cpu seconds. I that relevant to the slow queries?

    Appreciate feedback on this.

    Thanks,
    Lise

    #421441

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Lise,

    Thanks for the info, its hard to tell what the exact resources are from their info.
    Its hare to tell what is going on, most likely its server proceses as even the simpelest of queries are taking 20+seconds:

    
    
    8. Executed 7h 14m 58s ago for 20.569919 sec on Database –> Unknown (NOT FOUND / DELETED)
    Date: 2018-03-10 06:31:46 Query_time: 20.569919 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000086
    # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_location_prefix’ LIMIT 1;

    Is the site slow? Maybe it was just a one off server event?

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount