Commit b65907b8 authored by Dries's avatar Dries

- Patch #257910 by douggreen et al: Performance Issue during Indexing -...

- Patch #257910 by douggreen et al: Performance Issue during Indexing - search_dataset.sid_type unique key should be an Index.
parent bb5a8e80
......@@ -55,7 +55,7 @@ function search_schema() {
'description' => t('Set to force node reindexing.'),
),
),
'unique keys' => array(
'indexes' => array(
'sid_type' => array('sid', 'type'),
),
);
......
......@@ -3100,6 +3100,16 @@ function system_update_7011() {
return $ret;
}
/**
* 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.
......
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