Title: DB Slow down after WordPress Update
Last modified: August 27, 2021

---

# DB Slow down after WordPress Update

 *  [r4j47haxor](https://wordpress.org/support/users/r4j47haxor/)
 * (@r4j47haxor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/db-slow-down-after-wordpress-update/)
 * Hello,
 * After updating wordpress, website takes 10-12 second to fully load, as i checked
   these are the queries which are taking all the time to load. I checked and created
   index as well. but nothing is working for now. Please guide me for the solution.
 * One all them is this and rest are same with different filters in WHERE
 *     ```
       SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
       FROM wp_posts
       INNER JOIN wp_postmeta
       ON ( wp_posts.ID = wp_postmeta.post_id )
       INNER JOIN wp_postmeta AS mt1
       ON ( wp_posts.ID = mt1.post_id )
       INNER JOIN wp_postmeta AS mt2
       ON ( wp_posts.ID = mt2.post_id )
       INNER JOIN wp_postmeta AS mt3
       ON ( wp_posts.ID = mt3.post_id )
       WHERE 1=1
       AND ( wp_postmeta.meta_key = 'start_date'
       AND ( ( mt1.meta_key = 'end_date'
       AND mt1.meta_value > '20210827' )
       OR ( ( mt2.meta_key = 'end_date'
       AND mt2.meta_value = '20210827' )
       AND ( mt3.meta_key = 'end_time'
       AND mt3.meta_value > '05:25:08' ) ) ) )
       AND wp_posts.post_type = 'events'
       AND (wp_posts.post_status = 'publish'
       OR wp_posts.post_status = 'acf-disabled'
       OR wp_posts.post_status = 'private')
       GROUP BY wp_posts.ID
       ORDER BY CAST(wp_postmeta.meta_value AS DATE) ASC, wp_posts.post_date DESC
       LIMIT 0, 2
       ```
   
 * Regards
    Rajat Sharma
    -  This topic was modified 4 years, 10 months ago by [r4j47haxor](https://wordpress.org/support/users/r4j47haxor/).
    -  This topic was modified 4 years, 10 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/db-slow-down-after-wordpress-update/#post-14812175)
 * We have some general recommendations for you at [https://wordpress.org/support/article/optimization/](https://wordpress.org/support/article/optimization/)

Viewing 1 replies (of 1 total)

The topic ‘DB Slow down after WordPress Update’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/db-slow-down-after-wordpress-update/#post-14812175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
