_getGroupClause() optimization