当前位置:首页 > 报告详情

专场10.5-TiDB 如何实现 HTAP 架构中列存的高频更新和快速查询-韦万.pdf

上传人: 2*** 编号:126920 2023-05-01 32页 3.62MB

1、Dive Deep Into TiDBs Columnar Storage Engine万 PingCAPTiDB IntroductionTiDBis an open-source NewSQL database that supports HTAP workloads.It is MySQL compatible and features horizontal scalability,strong consistency,and high availability.And there is a serverless free TiDB available for every develop

2、ers at .Get ready in 20 seconds!How does TiDB handle HTAP workloads Dive deep into Delta Tree,the columnar storage engine of TiDB Cloud-native evolutionAgendaHow does TiDB handle HTAP workloads?Row storage engine,powered by RocksDBColumnar storage engine,named as Delta TreeTiDB IntroductionTiKVTiFla

3、sh TiKV is for OLTP,and TiFlash is for OLAP TiKV synchronizes data updates in real-time to TiFlash,via raft protocol.Reads on TiKV and TiFlash are strong consistent,with no delay.Read consistency is guaranteed by learner-read mechanism.Two storage engines work together to empower HTAP abilityOptimiz

4、er utilize both column and row storages.Dive deep into Delta Tree,the columnar storage engine of TiDBParquet is handy,isnt it enough?No!We need real-time update with high OPS.We need MVCC,to support transactional snapshot isolation.A typical write throughput of a TiFlash nodeColumnar Storage Engines

5、elect*from T with read_ts=65 Transform updates and deletes into upserts.MVCC ability get The basic ideas of Delta Tree Storage engine Split the data by PK range into many Segments Each segment is a small LSM-Tree,with only 2 layers Delta layer and write cache,i.e.memtable Stable layerThe basic ideas

6、 of Delta Tree Storage engine Segments are read in parallel,naturally.Fewer layers brings faster reads Fewer layers to sort merge Segments are compact in parallel in separate ranges,brings smaller write amplificationA typical write amplificationThe basic ideas of Delta Tree Storage engine Column fil

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
TiDB 是一个开源的 NewSQL 数据库,支持 HTAP(Hybrid Transactional/Analytical Processing)工作负载,兼容 MySQL,并具有水平可扩展性、强一致性和高可用性。TiDB 包含两种存储引擎:行存储引擎(由 RocksDB 支持),用于 OLTP(在线事务处理);列存储引擎(名为 Delta Tree),用于 OLAP(在线分析处理)。TiKV 负责 OLTP,TiFlash 负责 OLAP,通过 Raft 协议实时同步数据更新。TiDB 的优化器可以同时利用行和列存储。Delta Tree 存储引擎支持实时更新和高 OPS,需要 MVCC 以支持事务性快照隔离。写入吞吐量方面,TiFlash 节点的典型值表现出良好的性能。Parquet 虽然方便,但不足以满足实时更新需求。PageStorage 是 Delta Tree 存储引擎的本地对象存储,负责存储和管理页面数据,具有低读写延迟和高吞吐量等特点。TiDB 还将在云原生架构方面进行进化,例如采用远程对象存储(如 S3),提高可扩展性、可用性和成本效益。
"TiDB如何处理HTAP工作负载?" "Delta Tree存储引擎的原理是什么?" "云原生对TiDB有哪些优势?"
客服
商务合作
小程序
服务号
折叠