Add new index to forum table.
function forum_update_7000() { db_drop_index('forum', 'nid'); db_add_index('forum', 'forum_topic', array( 'nid', 'tid', )); }