Map reduce to group by

Okay, but in some cases records are in lakhs and it is taking time to iterate over all rows :frowning: Is there any approach other than iterating over all rows in the result??