Hi, for some reason the theme is generating a heavy load on mysql I have a 16core dedicated server with 65gb mem for just 1 site. and it hits 4000% the cpu load
here is the query thats doing the problem any input from you guys will be highly appreciate it.
| 53 | gsvunyrkkt | localhost:44776 | gsvunyrkkt | Query | 0 | Copying to tmp table | SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND (
( wp_postmeta.meta_key = ‘_banner_campaign_id’ AND wp_postmeta.meta_value = ‘29577’ )
) AND wp_posts.post_type = ‘banners’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC | 0.000 |
| 54 | gsvunyrkkt | localhost:45626 | gsvunyrkkt | Query | 1 | Copying to tmp table | SELECT wp_posts.* FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND (
( wp_postmeta.meta_key = ‘_banner_campaign_id’ AND wp_postmeta.meta_value = ‘37086’ )
) AND wp_posts.post_type = ‘banners’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC | 0.000 |
Hi,
There are a few topics you could check from the forum
– https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
– https://forum.tagdiv.com/topic/sql-querys-high-cpu/
– https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
Also some database optimization guides here
– https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
– https://underconstructionpage.com/optimize-wordpress-database/
– https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/
Coming theme updates will contain overall improvements in the theme, which should improve the theme load and speed noticeably. Can’t get into details as to what these changes will be however.
Thanks