[wp-trac] [WordPress Trac] #41675: Add filter to bypass display/query for Media Months filter in media modal

WordPress Trac noreply at wordpress.org
Sat Aug 19 18:27:28 UTC 2017


#41675: Add filter to bypass display/query for Media Months filter in media modal
-------------------------+-----------------------------
 Reporter:  CrazyJaco    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I am investigating slow running queries to try and cut down the page load
 time for edit pages in the admin.

 The media months dropdown filter runs a somewhat expensive query for what
 it is.
 On our production database, it adds about 500 ms of query execution time
 to the page load.

 There doesn't seem to be a way to be able to disable this drop down.
 The query that is run populates the field.
 But when there are a mass quantity of media, this is not an optimal method
 of search.

 There should be an option/filter to disable the display and query for
 this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41675>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list