I have a set of records which I need to:
1) Group by \'date\', \'city\' and \'kind\'
2) Sort every group by \'prize
In my code:
impor
groupByKey is expensive, it has 2 implications:
Depending of your use case you have different better options: