#363262 by catch and Damien Tournoud: Replace src index on the {url_alias} table with src, language for better performance.

merge-requests/26/head
Angie Byron 2009-01-25 13:57:21 +00:00
parent 4bf29632d4
commit 5951daf881
1 changed files with 12 additions and 1 deletions

View File

@ -1260,7 +1260,7 @@ function system_schema() {
),
'primary key' => array('pid'),
'indexes' => array(
'src' => array('src'),
'src_language' => array('src', 'language'),
),
);
@ -3196,6 +3196,17 @@ function system_update_7017() {
return $ret;
}
/**
* Replace src index on the {url_alias} table with src, language.
*/
function system_update_7018() {
$ret = array();
db_add_index($ret, 'url_alias', 'src_language', array('src', 'language'));
db_drop_index($ret, 'url_alias', 'src');
return $ret;
}
/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.