[wp-trac] [WordPress Trac] #10964: Improving query_posts performance

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 20 19:37:28 UTC 2011


#10964: Improving query_posts performance
-------------------------------------+-----------------------------
 Reporter:  buch0090                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Performance              |     Version:  2.8.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by prettyboymp):

 scribu's patch can be taken a step further and lazy load the found posts
 query result.  For the most part, the found posts result is only needed
 for the main loop where paging is involved, yet, most developers don't
 know to add the 'no_found_rows' parameter to every single WP_Query request
 where they don't need paging.  It would require creating a magic get()
 method for backwards compatibility, but it can throw a deprecated warning
 and switch to a real getter implementation.

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


More information about the wp-trac mailing list