当前位置:网站首页>PostgreSQL列存与行存
PostgreSQL列存与行存
2022-04-23 16:44:00 【代元培】
列存优势:
1、列存没有行存1666列的限制
2、列存的大量记录数扫描比行存节约资源
3、列存压缩比高,节约空间
4、列存的大量数据计算可以使用向量化执行,效率高
行存优势:
1、行存查询多列时快
2、行存DML效率高
简单来说,行存适合OLTP业务,列存适合OLAP业务。
如果业务是混合负载,既有高并发SQL,又有实时分析业务怎么办?
Oracle的做法:
in memory column store,实际上是两份存储,一份在磁盘(行存),一份在内存中使用列存。
根据SQL,优化器选择扫描列存还是行存。(通常看planNODE中数据扫描的行选择性,输出的行数,输出的列数等)
Oracle in memory column store是两份存储的思路。
PostgreSQL如何应对混合业务场景呢?
当前PG已经有了SMP并行执行的优化器功能,丰富的聚合函数,窗口函数等,已经有很好的OLAP处理能力。如果能在数据存储组织形式上支持到位,势必会给OLAP的能力带来更大的质的飞跃,以更好的适合OLTP OLAP混合业务场景。
版权声明
本文为[代元培]所创,转载请带上原文链接,感谢
https://blog.csdn.net/sosemseo/article/details/124323733
边栏推荐
- 如何建立 TikTok用户信任并拉动粉丝增长
- Pytorch: the pit between train mode and eval mode
- Loading order of logback configuration file
- ◰ GL shader handler encapsulation
- Sail soft calls the method of dynamic parameter transfer and sets parameters in the title
- Regular filtering of Intranet addresses and segments
- 扫码登录的原理你真的了解吗?
- Take according to the actual situation, classify and summarize once every three levels, and see the figure to know the demand
- 5-minute NLP: text to text transfer transformer (T5) unified text to text task model
- Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out
猜你喜欢
RAID磁盘阵列与RAID5的创建
欣旺达:HEV和BEV超快充拳头产品大规模出货
ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
Use case execution of robot framework
Loggie source code analysis source file module backbone analysis
Dlib of face recognition framework
【Pygame小游戏】10年前风靡全球的手游《愤怒的小鸟》,是如何霸榜的?经典回归......
Solution of garbled code on idea console
Disk management and file system
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
随机推荐
Camtasia2022软件新增功能介绍
How magical is the unsafe class used by all major frameworks?
Pseudo Distributed installation spark
织梦DEDECMS安全设置指南
LVM与磁盘配额
The most detailed knapsack problem!!!
Gartner 發布新興技術研究:深入洞悉元宇宙
VMware Workstation cannot connect to the virtual machine. The system cannot find the specified file
文件系统读写性能测试实战
Force buckle - 198 raid homes and plunder houses
深度学习100例 | 第41天-卷积神经网络(CNN):UrbanSound8K音频分类(语音识别)
Summary according to classification in sail software
How does flash cache data in memory?
Construction of promtail + Loki + grafana log monitoring system
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
G008-hwy-cc-estor-04 Huawei Dorado V6 storage simulator configuration
Derivation of Σ GL perspective projection matrix
Sail soft calls the method of dynamic parameter transfer and sets parameters in the title
信息摘要、数字签名、数字证书、对称加密与非对称加密详解
JMeter installation tutorial and solutions to the problems I encountered