[wp-trac] [WordPress Trac] #17203: Recent Posts widget should set 'no_found_rows' => true

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 21 09:59:25 UTC 2011


#17203: Recent Posts widget should set 'no_found_rows' => true
-------------------------+-----------------------
 Reporter:  scribu       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  3.2
Component:  Performance  |    Version:
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------
 WP_Widget_Recent_Posts calls WP_Query, but doesn't need the total number
 of posts.

 Therefore, it should set {{{'no_found_rows' => true}}} to make the query
 faster.

 Even with #17195, this should still be done, to avoid SQL_FOUND_ROWS.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17203>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list