diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-25 13:57:21 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-25 13:57:21 +0000 |
commit | 5951daf88184caf210bbaff5a8f035700b4614f3 (patch) | |
tree | 2231bf750a0ea3791cb880fb536a9e3efede48d8 | |
parent | 4bf29632d4f298fe8383cd8972ef5059bb596f9e (diff) | |
download | brdo-5951daf88184caf210bbaff5a8f035700b4614f3.tar.gz brdo-5951daf88184caf210bbaff5a8f035700b4614f3.tar.bz2 |
#363262 by catch and Damien Tournoud: Replace src index on the {url_alias} table with src, language for better performance.
-rw-r--r-- | modules/system/system.install | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 8a253ecaa..9ac9f0264 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -1260,7 +1260,7 @@ function system_schema() { ), 'primary key' => array('pid'), 'indexes' => array( - 'src' => array('src'), + 'src_language' => array('src', 'language'), ), ); @@ -3197,6 +3197,17 @@ function system_update_7017() { } /** + * 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. */ |