重庆小潘seo博客

当前位置:首页 > 重庆网络营销 > 小潘杂谈 >

小潘杂谈

mysql源码是什么语言

时间:2020-09-22 06:40:06 作者:重庆seo小潘 来源:
mysql的内存管理庞大而先进,这在mem0pool.c文件的开头注释中都有说明,粗略的可以分成四部分,包含9大块: 九大块:buffer pool,parsed andoptimized SQL statements,data dictionarycache,log buffer,locks for eachtransaction,hash table forthe adaptiv

mysql的内存管理庞大而先进,这在mem0pool.c文件的开头注释中都有说明,粗略的可以分成四部分,包含9大块:

mysql源码是什么语言

九大块:buffer pool,parsed andoptimized SQL statements,data dictionarycache,log buffer,locks for eachtransaction,hash table forthe adaptive index,state andbuffers for each SQL query currently being executed,session foreach user, andstack for eachOS thread.9大块通过4部分进行管理A solution tothe memory management:1. the bufferpool size is set separately;2. log buffersize is set separately;3. the commonpool size for all the other entries, except 8, is set separately.也就是缓冲池,redo日志缓冲,普通池和8(用户session信息,可看做一部分)

redo日志缓冲由redo部分单独管理,bufferpool也就是缓冲池是一个复杂的部分,内容很多,普通池上面说了,除了8,和1,2.其余的都归它管。MySQL是用C++开发的。MySQL的官方网站http://www.mysql.com/上有源码下载,是C++的以上就是mysql源码是什么语言的详细内容,更多请关注小潘博客其它相关文章!