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

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 19 19:30:24 UTC 2012


#8071: Refrain from querying all the comments on a post when paged
-------------------------+-----------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Comments     |     Version:  2.7
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------

Comment (by nacin):

 Replying to [comment:8 scribu]:
 > For threaded comments, something like the following might or might not
 be worth implementing:
 >
 >  1. Get the list of all ids and parent ids
 >  2. Build the hierarchy tree
 >  3. Figure out which items are to be displayed now
 >  4. Get all the info for those items, in one go
 >  5. Display

 This sounds like a great idea.

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


More information about the wp-trac mailing list