当前位置:网站首页>The difference between groupByKey and reduceBykey
The difference between groupByKey and reduceBykey
2022-08-01 21:32:00 【xiexiexie0520】
What is the difference between groupByKey and reduceBykey?
groupByKey
reduceBykey
Differences:
- reduceByKey will perform pre-aggregation on the map side, which can reduce the amount of data transmitted during the shuffle process and improve execution efficiency. GroupByKey cannot be pre-aggregated
- In some business scenarios, reduceByKey cannot be implemented, and groupByKey needs to be used
- Use reduceBykey instead of groupByKey
边栏推荐
猜你喜欢
随机推荐
附录A printf、varargs与stdarg A.3 stdarg.h ANSI版的varargs.h
这些 hook 更优雅的管理你的状态
列表页常见的 hook 封装
”sed“ shell脚本三剑客
HCIP---企业网的架构
C Expert Programming Chapter 1 C: Through the Fog of Time and Space 1.5 ANSI C Today
R语言进行相关的操作
[Chinese tree tags - CTB]
基于php酒店在线预定管理系统获取(php毕业设计)
基于php湘西旅游网站管理系统获取(php毕业设计)
淘宝获取收货地址列表的 API
JSD - 2204 - Knife4j framework - processing - Day07 response results
方舟:生存进化PVE模式和PVP模式
C专家编程 第1章 C:穿越时空的迷雾 1.5 今日之ANSI C
Day33 LeetCode
R语言 线性回归的有关方法
WEB渗透之SQL 注入
R语言 pca主成分分析的主要方法
基于php在线音乐网站管理系统获取(php毕业设计)
C Pitfalls and Defects Chapter 7 Portability Defects 7.8 Size of Random Numbers