[wp-trac] [WordPress Trac] #16706: Queries using "category__and" are slow on large databases

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 1 17:43:41 UTC 2011


#16706: Queries using "category__and" are slow on large databases
-------------------------+-----------------------------
 Reporter:  tigertech    |       Owner:  scribu
     Type:  enhancement  |      Status:  reviewing
 Priority:  normal       |   Milestone:  Future Release
Component:  Performance  |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by tigertech):

 Replying to [comment:12 scribu]:
 > I presume that {{{COUNT(1)}}} can be safely replaced with the more
 common {{{COUNT(*)}}}

 Sure, that's fine -- whichever is the WordPress style. (The
 "{{{COUNT(1)}}}" style is faster in some cases involving NULLs, so I use
 it out of habit, but in this case it doesn't matter.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16706#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list