[wp-trac] Re: [WordPress Trac] #8071: Refrain from querying all the comments on a post when paged

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 17 00:52:10 GMT 2009


#8071: Refrain from querying all the comments on a post when paged
--------------------------+-------------------------------------------------
  Reporter:  markjaquith  |        Type:  enhancement
    Status:  closed       |    Priority:  normal     
 Milestone:               |   Component:  Comments   
   Version:  2.7          |    Severity:  normal     
Resolution:  wontfix      |    Keywords:             
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * status:  new => closed
  * resolution:  => wontfix
  * milestone:  2.8 =>


Comment:

 Closing as wontfix. As much as I agree this should really be dealt with in
 SQL, I dug into this one myself recently while redoing my theme's comments
 template.

 Basically, the paging is so in WP that you the walker class grabs all of
 the comments. You then extract the correct ones based on filters (by type,
 etc.) and number of comments per page. As the stuff in there can use
 custom callbacks, there's absolutely no way this can land in SQL.

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


More information about the wp-trac mailing list