Title: Slow database query?
Last modified: January 20, 2018

---

# Slow database query?

 *  Resolved [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/slow-database-query-2/)
 * Is it possible that your plugin would great a query similar to this please?
 * `SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.
   post_id )`
 * We are experiencing high CPU loads with multiple visitors triggering this query
   and it reaches a crazy timeout of 600 seconds. Any thoughts? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/slow-database-query-2/#post-9886131)
 * Is that the full query? I don’t have any INNER JOIN queries that have this.
 * A quick way to check this out is to use the Query Monitor plugin to see which
   queries are generated from which plugin/theme to figure out the one causing an
   issue
 *  Thread Starter [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/slow-database-query-2/#post-9886157)
 * Thank you for the suggestion, I will add it. I realised it wasn’t your plugin
   after disabling and deleting it to test it. The mystery continues. Thanks for
   your help!
 *  Plugin Author [WebberZone](https://wordpress.org/support/users/webberzone/)
 * (@webberzone)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/slow-database-query-2/#post-9886858)
 * Glad to hear that. Query Monitor might help figure out the plugin causing the
   issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Slow database query?’ is closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WebberZone](https://wordpress.org/support/users/webberzone/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/slow-database-query-2/#post-9886858)
 * Status: resolved