210e23a63d
The query to select the next 5 blogs to upgrade was ordered by `registered`, which isn't indexed. This causes the query to table scan, which will be slow on networks with many blogs. The query only needs to be ordered by something that won't change, so ordering by `blog_id` is a good replacement. `blog_id` is indexed, and it's the only column being returned, so MySQL is able to optimize for a fast index read. Props fliespl. Fixes #37612. Built from https://develop.svn.wordpress.org/trunk@38229 git-svn-id: http://core.svn.wordpress.org/trunk@38170 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
about.php | ||
admin.php | ||
credits.php | ||
edit.php | ||
freedoms.php | ||
index.php | ||
menu.php | ||
plugin-editor.php | ||
plugin-install.php | ||
plugins.php | ||
profile.php | ||
settings.php | ||
setup.php | ||
site-info.php | ||
site-new.php | ||
site-settings.php | ||
site-themes.php | ||
site-users.php | ||
sites.php | ||
theme-editor.php | ||
theme-install.php | ||
themes.php | ||
update-core.php | ||
update.php | ||
upgrade.php | ||
user-edit.php | ||
user-new.php | ||
users.php |