Commit 5951daf8 authored by webchick's avatar webchick
Browse files

#363262 by catch and Damien Tournoud: Replace src index on the {url_alias}...

#363262 by catch and Damien Tournoud: Replace src index on the {url_alias} table with src, language for better performance.
parent 4bf29632
...@@ -1260,7 +1260,7 @@ function system_schema() { ...@@ -1260,7 +1260,7 @@ function system_schema() {
), ),
'primary key' => array('pid'), 'primary key' => array('pid'),
'indexes' => array( 'indexes' => array(
'src' => array('src'), 'src_language' => array('src', 'language'),
), ),
); );
...@@ -3196,6 +3196,17 @@ function system_update_7017() { ...@@ -3196,6 +3196,17 @@ function system_update_7017() {
return $ret; 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" * @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000. * The next series of updates should start at 8000.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment