一张表分为数据文件和数据表定义两部分,表定义文件缓存可以放在table_definition_cache中,其默认值是1400。
table_definition_cache:the number of table definitions (from .frm files) that can be stored in the definition cache. If you use a large number of tables, you can create a large table definition cache to speed up opening of tables. The table definition cache takes less space and does not use file descriptors, unlike the normal table cache.
数据库内部控制总frm文件的数量,如果打开的表的数量超过了table_definition_cache设置,LRU机制将开始标记以进行清除,最终将它们从数据字典缓存中清除。
数据库表定义缓存(table_definition_cache)控制了.FRM文件的数量,用于加速表的打开速度。当表数量超过缓存限制时,LRU机制会清理超出的表定义,以保持内存效率。增大该缓存可以提升系统性能,尤其在处理大量表时。
496

被折叠的 条评论
为什么被折叠?



