summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-30 08:12:20 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-30 08:12:20 +0000
commit682b9dc3bb3a7d159570154f35476261f49c2e24 (patch)
tree2901127340271a48014706ed9b19bd3f4ce412a6
parent539ba0dc38d7a2494f71df221ee9ee9eae7cae69 (diff)
downloadbrdo-682b9dc3bb3a7d159570154f35476261f49c2e24.tar.gz
brdo-682b9dc3bb3a7d159570154f35476261f49c2e24.tar.bz2
- Patch #659570 by brianV: added missing index to taxonomy_get_term_by_name() query.
-rw-r--r--modules/taxonomy/taxonomy.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 57ae17e4b..c2d58c759 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -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'));
+}
+