[wp-trac] [WordPress Trac] #23336: Sticky Posts lack sanity bounding. If used too much, can severely degrade performance.

WordPress Trac noreply at wordpress.org
Fri Feb 1 19:23:28 UTC 2013


#23336: Sticky Posts lack sanity bounding. If used too much, can severely degrade
performance.
--------------------------+------------------------------
 Reporter:  markjaquith   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by iandunn):

 I looked through all the times sticky_posts is pulled from the DB, and
 couldn't reproduce any other speed issues in those areas, so it seems like
 get_posts() was the only spot that triggered the problem.

 The array_slice() call that the patch adds to get_posts() is in a
 condition that only runs on the home page, so I can't think of any side
 effects outside of the query that the patch targets, and haven't run
 across any in testing.

 So, I think the patch is ready unless anyone can think of something I've
 missed.

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


More information about the wp-trac mailing list