diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-02 14:56:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-02 14:56:15 +0000 |
commit | b65907b89cee44f311a038b391384286772ac74d (patch) | |
tree | bae6ccee720ddfbcb829a82eacc49c0e12f35456 | |
parent | bb5a8e8074dc4cddd0a82269a31f5aec9416da0b (diff) | |
download | brdo-b65907b89cee44f311a038b391384286772ac74d.tar.gz brdo-b65907b89cee44f311a038b391384286772ac74d.tar.bz2 |
- Patch #257910 by douggreen et al: Performance Issue during Indexing - search_dataset.sid_type unique key should be an Index.
-rw-r--r-- | modules/search/search.install | 2 | ||||
-rw-r--r-- | modules/system/system.install | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/modules/search/search.install b/modules/search/search.install index b6e3b7c12..684e85e4d 100644 --- a/modules/search/search.install +++ b/modules/search/search.install @@ -55,7 +55,7 @@ function search_schema() { 'description' => t('Set to force node reindexing.'), ), ), - 'unique keys' => array( + 'indexes' => array( 'sid_type' => array('sid', 'type'), ), ); diff --git a/modules/system/system.install b/modules/system/system.install index f84bc570c..3a7bec61c 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3101,6 +3101,16 @@ function system_update_7011() { } /** + * Replace unique key 'sid_type' by indexes in 'search_dataset' table. + */ +function system_update_7012() { + $ret = array(); + db_drop_unique_key($ret, 'search_dataset', 'sid_type'); + db_add_index($ret, 'search_dataset', 'sid_type', array('sid', 'type')); + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |