[wp-trac] [WordPress Trac] #31071: media / post_mime_type related queries are very slow on larger sites

WordPress Trac noreply at wordpress.org
Mon Mar 6 03:21:11 UTC 2017


#31071: media / post_mime_type related queries are very slow on larger sites
-------------------------------------------------+-------------------------
 Reporter:  archon810                            |       Owner:  pento
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Media                                |  Release
 Severity:  normal                               |     Version:  4.1
 Keywords:  dev-feedback reporter-feedback 2nd-  |  Resolution:
  opinion has-patch                              |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by jnylen0):

 I think we should add filters to allow short-circuiting these queries,
 since there is not an obvious solution that will work for every site (at
 least it's not obvious to me from the discussion above).

 [attachment:media.php.diff] from @sboisvert looks sound to me but needs
 some stylistic clean-up before commit.

 Thoughts?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31071#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list