Media library – Adding a mere 20mb image shoots DB CPU to 90%
-
Adding a mere 20mb image to Media library shoots DB CPU to 90%.
Not sure what wrong I am doing. We are storing the image in Azure storage.Below slow query is generated several times only for one image upload.
SELECT cms_posts.ID
FROM cms_posts
WHERE 1=1 AND (((cms_posts.post_title LIKE ‘%https://ticketcms.azureedge.net/ticketcms/2019/05/IMG\\_4C700BD34A96-1-360×180.jpeg%’) OR
(cms_posts.post_excerpt LIKE ‘%https://ticketcms.azureedge.net/ticketcms/2019/05/IMG\\_4C700BD34A96-1-360×180.jpeg%’) OR
(cms_posts.post_content LIKE ‘%https://ticketcms.azureedge.net/ticketcms/2019/05/IMG\\_4C700BD34A96-1-360×180.jpeg%’))) AND
cms_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘freetext_template’, ‘featured_event’, ‘static_event_design’, ‘topic_text’, ‘topic_img’, ‘rakuten_banner’, ‘hot_words’, ‘notice’) AND (cms_posts.post_status = ‘publish’ OR cms_posts.post_status = ‘acf-disabled’ OR cms_posts.post_status = ‘future’ OR cms_posts.post_status = ‘draft’ OR cms_posts.post_status = ‘pending’ OR cms_posts.post_author = 1 AND cms_posts.post_status = ‘private’)
ORDER BY cms_posts.post_title LIKE ‘%https://ticketcms.azureedge.net/ticketcms/2019/05/IMG\\_4C700BD34A96-1-360×180.jpeg%’ DESC,
cms_posts.post_date DESC;Any suggestion would be greatly appreciated.
- The topic ‘Media library – Adding a mere 20mb image shoots DB CPU to 90%’ is closed to new replies.