MySQL:什么是页面? [英] MySQL: What is a page?

查看:220
本文介绍了MySQL:什么是页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能为我的生活记住什么是一个页面,在MySQL数据库的上下文中。当我看到像8KB /页,这意味着每行8KB或...?

I can't for the life of me remember what a page is, in the context of a MySQL database. When I see something like 8KB/page, does that mean 8KB per row or ...?

推荐答案

数据库页是内部基本结构来组织数据库文件中的数据。这里有关于InnoDB模型的一些信息。

Database pages are the internal basic structure to organize the data in the database files. Here some informations about the InnoDB model.

13.2.11.2。文件空间管理


在配置文件中定义的数据文件形成InnoDB表空间。这些文件在逻辑上串联以形成表空间。 [...]表空间由缺省大小为16KB的数据库页组成。页面被分组成大小为1MB(64个连续页面)的范围。

The data files that you define in the configuration file form the InnoDB tablespace. The files are logically concatenated to form the tablespace. [...] The tablespace consists of database pages with a default size of 16KB. The pages are grouped into extents of size 1MB (64 consecutive pages). The "files" inside a tablespace are called segments in InnoDB.

13.2.14。 InnoDB表的限制


InnoDB中的默认数据库页面大小为16KB。通过重新编译代码,您可以将其设置为从8KB到64KB的值。

The default database page size in InnoDB is 16KB. By recompiling the code, you can set it to values ranging from 8KB to 64KB.

strong> :

Further, to put rows in relation to pages:


除了可变长度列(VARBINARY, VARCHAR,BLOB和TEXT)略小于数据库页面的一半。也就是说,最大行长度约为8000字节。 LONGBLOB和LONGTEXT列必须小于4GB,且包括BLOB和TEXT列的总行长必须小于4GB。

The maximum row length, except for variable-length columns (VARBINARY, VARCHAR, BLOB and TEXT), is slightly less than half of a database page. That is, the maximum row length is about 8000 bytes. LONGBLOB and LONGTEXT columns must be less than 4GB, and the total row length, including BLOB and TEXT columns, must be less than 4GB.

这篇关于MySQL:什么是页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆