[wp-trac] [WordPress Trac] #24093: WP_Meta_Query is inefficient when referencing the same keys in "OR" query

WordPress Trac noreply at wordpress.org
Sun Sep 21 18:11:34 UTC 2014


#24093: WP_Meta_Query is inefficient when referencing the same keys in "OR" query
-------------------------------------------------+-------------------------
 Reporter:  sc0ttkclark                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Query                                |  Release
 Severity:  normal                               |     Version:  3.5.1
 Keywords:  needs-refresh meta-query needs-      |  Resolution:
  unit-tests has-patch                           |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by sarukuku):

 It would be good to get this finally in. I happened to stuble on this when
 I was looking for an answer to a problem I have with a dynamically
 generated meta_query. When the amount of the meta_query arrays exceeds
 nine my local development server and my staging server both just freeze.
 The DB query seems to run indefinitely and I need to restart the MySQL
 server to get the site operational again.

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


More information about the wp-trac mailing list