[wp-trac] Re: [WordPress Trac] #7415: "using filesort" in default install

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 28 08:19:54 GMT 2009


#7415: "using filesort" in default install
------------------------------------------------------------+---------------
 Reporter:  dbuser123                                       |        Owner:  anonymous
     Type:  defect (bug)                                    |       Status:  new      
 Priority:  high                                            |    Milestone:  2.8      
Component:  Optimization                                    |      Version:  2.7      
 Severity:  major                                           |   Resolution:           
 Keywords:  database, optimization, slow queries, filesort  |  
------------------------------------------------------------+---------------
Comment (by Denis-de-Bernardy):

 Replying to [comment:25 ryan]:
 > Some casual testing against a posts table with 26k rows doesn't show
 much difference between SQL_CALC_FOUND_ROWS and COUNT for me, even when
 paging way back into the archives.  SQL_CALC_FOUND_ROWS + FOUND ROWS is
 probably a little faster, on average.

 I'm not surprised, personally. for a query with meaningful
 join/where/group by/having clauses, it'll actually run the aggregate --
 meaning you end up running the query twice.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7415#comment:27>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list