Skip to content

Commit

Permalink
Add storage management section to the blog
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Apr 10, 2024
1 parent 2ea0089 commit 6c4ef44
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,16 @@ class iterator {
2. 需要快速批量导入数据
3. 物化视图(可以查询的实际表)
4. 重点优化基于雪花模型的聚合查询
5. 列存
5. 列存

## 存储管理

主要有两种基本类型的存储管理器
1. DBMS 直接和底层磁盘驱动交互
2. DBMS 使用标准 OS 文件系统

主要从两方面优化
1. 空间:物理存储上的临近性(顺序读写),创建大文件
2. 时间:缓冲池替代 OS IO 缓冲机制(预读取,确保 WAL 落盘,双缓冲导致内存拷贝消耗)

## 事务:并发控制和恢复

0 comments on commit 6c4ef44

Please sign in to comment.