Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhao committed Jul 29, 2024
1 parent 655726a commit 09420a2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/advanced/4.InnoDB内存结构——缓冲池.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
- 为什么需要将数据在不同的存储器之间移动?
- 为什么要自己来做数据移动的管理,而非利用 OS 自带的磁盘管理模块?





从 InnoDB 逻辑存储结构来看,所有的数据都被逻辑的存放在一个空间中,这个空间就叫做表空间(tablespace)。

> ***\*表空间由 段(segment)、区(extent)、页(page)\****组成。


当我们创建一个表之后,在磁盘上会有对应的表名称`.ibd`的磁盘文件。

表空间的磁盘文件里面有很多的数据页,一个数据页最多16kb,因为不可能一个数据页一个磁盘文件,所以数据区的概念引入了。

## 内存

### 内存缓冲池(buffer pool)
Expand Down

0 comments on commit 09420a2

Please sign in to comment.