Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #44675, comment 30


Ignore:
Timestamp:
04/25/2019 02:11:52 AM (5 years ago)
Author:
RogerTheriault
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44675, comment 30

    v1 v2  
    22
    33In testing, we saw this query running on most wp-admin pages, especially post.php and edit.php, and adding at least a few seconds of page load time to any site with > 1 million rows in wp_posts. In some cases, it takes much much longer.
     4
     5`SELECT DISTINCT post_mime_type FROM wp_posts WHERE post_type = 'attachment'`