Skip to content
Snippets Groups Projects
Commit 682b9dc3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 539ba0dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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'));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment