function taxonomy_update_7007 in Drupal 7
Add index on {taxonomy_term_data}.name column to speed up taxonomy_get_term_by_name().
File
- modules/
taxonomy/ taxonomy.install, line 841 - Install, update and uninstall functions for the taxonomy module.
Code
function taxonomy_update_7007() {
db_add_index('taxonomy_term_data', 'name', array(
'name',
));
}