update limit (group by)