function taxonomy_update_7007

Add index on {taxonomy_term_data}.name column to speed up taxonomy_get_term_by_name().

File

modules/taxonomy/taxonomy.install, line 841

Code

function taxonomy_update_7007() {
    db_add_index('taxonomy_term_data', 'name', array(
        'name',
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.