[wp-trac] [WordPress Trac] #19729: WP_Meta_Query is inefficient when only specifying keys in "OR" query
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 3 23:48:09 UTC 2012
#19729: WP_Meta_Query is inefficient when only specifying keys in "OR" query
-------------------------+------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: Query | Version: 3.3
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------
Comment (by Viper007Bond):
Quite the speed improvement!
And here's an easier to read (IMO) of the example:
{{{
$query = new WP_Query( array(
'meta_query' => array(
array(
'key' => 'foo'
),
array(
'key' => 'bar',
'value' => 'val2'
),
array(
'key' => 'baz'
),
array(
'key' => 'froo'
),
'relation' => 'OR',
),
) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19729#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list