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 TicketTagged: sql database
-
AuthorPosts
-
March 10, 2018 at 6:20 am #420943
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 secMarch 10, 2018 at 1:52 pm #420962Hi 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
March 14, 2018 at 2:45 am #421408Hi,
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,
LiseMarch 14, 2018 at 1:32 pm #421441Hi 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
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket