MariaDB max_heap_table_size是否动态分配?

时间:2015-09-07 09:31:46

标签: mysql memory memory-management mariadb

当我创建这样的MEMORY表时:

parentobject:[id]

我设置了: max_heap_table_size = 1G (因为我想向表中插入至少500MB的数据),我创建表时,MySQL / MariaDB预分配1GB内存或它(顾名思义)是否为可以用于该用户创建的表的数据的内存量设置了上限?

1 个答案:

答案 0 :(得分:1)

max_heap_table_size系统变量设置MEMORY表最大大小的限制。

有关详细信息,请参阅The MEMORY (HEAP) Storage Engine

在MariaDB文档MariaDB MEMORY Storage Engine

中也提到了相同的内容