[wp-trac] [WordPress Trac] #31071: post_mime_type related queries still slow on larger sites

WordPress Trac noreply at wordpress.org
Mon Nov 30 22:47:19 UTC 2015


#31071: post_mime_type related queries still 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                                        |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by jamesmehorter):

 Thanks for pointing that out @archon810! Would you agree that a patch for
 this ticket should then contain:

 1) The post_type, post_mime_type index added the way @pento suggested
 (https://core.trac.wordpress.org/ticket/31071#comment:7)

 2) The addition of "AND post_status = 'inherit'" to the months query (I
 see 3 variations on that query—see attached image)

 [[Image(https://d1zjcuqflbd5k.cloudfront.net/files/acc_6021/12t82
 ?response-content-
 disposition=inline;%20filename=Screen%20Shot%202015-11-30%20at%205.44.09%20PM.png&Expires=1448923826&Signature=b
 -gIRiszhSp1CNkPQU3WUa3S0KNsg7qF2dzeHgB32jRXdc0xF5krGm2Q4Erj1uEbWnHROzcql28jR4rlyWsVJ4gDOup0WhHaJaBWlZTDGNgx97RAuLkeSa7FQywFKwkNFvHZfA-
 VTQQbyDqMgfRONBqHz0v4A1E-x9pEfFyV6h4_&Key-Pair-Id=APKAJTEIOJM3LSMN33SA)]]

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


More information about the wp-trac mailing list