From cf5df5a7ce3d9e219b9510996eaa5798a44a701a Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 23 Feb 2016 23:21:26 +0000 Subject: [PATCH] Schema: Add an index to `wp_users.user_email`. Improves lookup of an email address on large user tables. See #9568. Fixes #33376. Built from https://develop.svn.wordpress.org/trunk@36654 git-svn-id: http://core.svn.wordpress.org/trunk@36621 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/schema.php | 6 ++++-- wp-includes/version.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index f2c7f5bfe3..b043e49b0c 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -204,7 +204,8 @@ CREATE TABLE $wpdb->posts ( display_name varchar(250) NOT NULL default '', PRIMARY KEY (ID), KEY user_login_key (user_login), - KEY user_nicename (user_nicename) + KEY user_nicename (user_nicename), + KEY user_email (user_email) ) $charset_collate;\n"; // Multisite users table @@ -223,7 +224,8 @@ CREATE TABLE $wpdb->posts ( deleted tinyint(2) NOT NULL default '0', PRIMARY KEY (ID), KEY user_login_key (user_login), - KEY user_nicename (user_nicename) + KEY user_nicename (user_nicename), + KEY user_email (user_email) ) $charset_collate;\n"; // Usermeta. diff --git a/wp-includes/version.php b/wp-includes/version.php index 734aa1ab76..ce3dc30d25 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,14 +4,14 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36653'; +$wp_version = '4.5-alpha-36654'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ -$wp_db_version = 36180; +$wp_db_version = 36654; /** * Holds the TinyMCE version