[wp-trac] [WordPress Trac] #14397: slow sql query from probably is_blog_installed

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 23 06:38:11 UTC 2010


#14397: slow sql query from probably is_blog_installed
--------------------------+-------------------------------------------------
 Reporter:  mark-k        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:  3.0            
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 When everything else fails, is_blog_installed uses
 $tables = $wpdb->get_col('SHOW TABLES');
 which can be costly in a big multisite or even when you have many single
 installations on the same DB

 Related question - why does is_blog_installed is even being called on
 wp_widgets_init()? I would assume that if the DB is not set properly not
 only the widgets will suffer but also the themes and the plugins which are
 not protected at the same way.

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


More information about the wp-trac mailing list