[wp-trac] Re: [WordPress Trac] #7415: "using filesort" in default
install
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 27 19:00:20 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):
$wpdb->posts.* might even be useful in some cases, in case someone
retrieves extra fields with one or more left joins on $wpdb->postmeta.
alternatively, we'd need:
{{{
$count_fields = apply_filters('count_fields', "$wpdb->posts.ID");
}}}
or something like that... in order to retrieve the correct number of
posts.
--
Ticket URL: <http://trac.wordpress.org/ticket/7415#comment:22>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list