function og_update_7206 in Organic groups 7.2
Add an index to {og_role} on group_type, group_bundle and gid to improve speed of og_roles().
File
- ./
og.install, line 1197 - Install, update, and uninstall functions for the Organic groups module.
Code
function og_update_7206() {
db_add_index('og_role', 'lookup', array(
'group_type',
'group_bundle',
'gid',
));
}