_getJoinType() optimization