Title: wp_posts query problem
Last modified: August 19, 2016

---

# wp_posts query problem

 *  [whooper](https://wordpress.org/support/users/whooper/)
 * (@whooper)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wp_posts-query-problem/)
 * Hey guys!
 * our “wp_posts” has over 15k entries and slows down our whole wordpress installation(
   up to two minutes sometimes), cause one query blocks all other queries on the“
   wp_posts” table.
 * Maybe a LIMIT will fix this issue, but unfortunately I don’t have any idea where
   to finde the where. Can anyone help?
 * Query (founded via phpMyAdmin):
 * SELECT `ID` , `post_author` , `post_date` , `post_date_gmt` , `post_status` ,`
   post_name` , `post_modified` , `post_modified_gmt` , `post_parent` , `post_type`
   
   FROM `wp_posts` WHERE ( ( post_status = ‘publish’ AND ( post_type = ‘post’ OR
   post_type = ” ) ) OR ( post_status = ‘publish’ AND post_type = ‘page’ ) ) AND
   post_password = ” ORDER BY post_modified DESC
 * THX for any help in advance.
 * Cheers
    Whooper

The topic ‘wp_posts query problem’ is closed to new replies.

## Tags

 * [query](https://wordpress.org/support/topic-tag/query/)
 * [wp_posts](https://wordpress.org/support/topic-tag/wp_posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [whooper](https://wordpress.org/support/users/whooper/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/wp_posts-query-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
