[wp-trac] Re: [WordPress Trac] #6770: large number of queries in
the pages management page
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 18 12:13:17 GMT 2008
#6770: large number of queries in the pages management page
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Optimization | Version: 2.5
Severity: minor | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):
also, on the same page, this query gets run twice:
{{{
[13]=>
array(3) {
[0]=>
string(103) "SELECT post_status, COUNT( * ) AS num_posts FROM wp_posts
WHERE post_type = 'page' GROUP BY post_status"
[1]=>
float(0.0020089149475098)
[2]=>
string(14) "wp_count_posts"
}
[14]=>
array(3) {
[0]=>
string(103) "SELECT post_status, COUNT( * ) AS num_posts FROM wp_posts
WHERE post_type = 'page' GROUP BY post_status"
[1]=>
float(0.0018351078033447)
[2]=>
string(14) "wp_count_posts"
}
}}}
D.
--
Ticket URL: <http://trac.wordpress.org/ticket/6770#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list