MariaDB max_heap_table_size 是动态分配的吗?
MariaDB max_heap_table_size is dynamically allocated?
当我像这样创建 MEMORY table 时:
CREATE TABLE test(id INT, UNIQUE(id)) ENGINE = MEMORY;
并且我已经设置:max_heap_table_size = 1G(因为我想插入至少500MB的数据到table),那一刻我create table, MySQL/MariaDB 预分配 1GB 的内存,或者它(顾名思义)是否为可用于该用户创建的数据的内存量设置了上限 table?
max_heap_table_size 系统变量设置 MEMORY 表的最大大小限制。
有关详细信息,请参阅 The MEMORY (HEAP) Storage Engine
MariaDB 文档中也提到了同样的内容MariaDB MEMORY Storage Engine
当我像这样创建 MEMORY table 时:
CREATE TABLE test(id INT, UNIQUE(id)) ENGINE = MEMORY;
并且我已经设置:max_heap_table_size = 1G(因为我想插入至少500MB的数据到table),那一刻我create table, MySQL/MariaDB 预分配 1GB 的内存,或者它(顾名思义)是否为可用于该用户创建的数据的内存量设置了上限 table?
max_heap_table_size 系统变量设置 MEMORY 表的最大大小限制。
有关详细信息,请参阅 The MEMORY (HEAP) Storage Engine
MariaDB 文档中也提到了同样的内容MariaDB MEMORY Storage Engine