[wp-trac] [WordPress Trac] #21986: Roll sticky posts into MySQL query

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 24 19:16:22 UTC 2012


#21986: Roll sticky posts into MySQL query
----------------------------+------------------------------
 Reporter:  martinshopland  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Query           |     Version:  3.4.2
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 I believe the fact that sticky posts don't affect the number of posts per
 a page is deliberate. Everything else, not sure.

 Performing multiple queries is often going to be faster than performing
 one super-loaded query. It's also easier to cache.

 In trunk, some of this code has been changed, for the better:
 http://core.trac.wordpress.org/browser/trunk/wp-
 includes/query.php?rev=21928#L2730.

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


More information about the wp-trac mailing list