query optimization, permission Group