Commit 682b9dc3 authored by Dries's avatar Dries
Browse files

- Patch #659570 by brianV: added missing index to taxonomy_get_term_by_name() query.

parent 539ba0dc
......@@ -72,6 +72,7 @@ function taxonomy_schema() {
'indexes' => array(
'taxonomy_tree' => array('vid', 'weight', 'name'),
'vid_name' => array('vid', 'name'),
'name' => array('name'),
),
);
......@@ -429,3 +430,10 @@ function taxonomy_update_7006() {
));
}
/**
* Add index on taxonomy_term_data.name column to speed up taxonomy_get_term_by_name().
*/
function taxonomy_update_7007() {
db_add_index('taxonomy_term_data', 'name', array('name'));
}
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