简体   繁体   English

具有大型InnoDB存档表的innodb_buffer_pool_size

[英]innodb_buffer_pool_size with large InnoDB archive table

I've been reading a whole ton on various MySQL configurations and I am still a bit unsure regarding my innodb_buffer_pool_size and was hoping someone could help. 我已经阅读了很多有关各种MySQL配置的文章,但对于我的innodb_buffer_pool_size还是不太确定,希望有人可以提供帮助。

I have some large InnoDB tables, the largest being (18gb with some INT columns, two TEXT columns [one being a 'description' which can be large'], and some small VARCHARS - roughly 23m rows). 我有一些大的InnoDB表,最大的是(18gb,其中有一些INT列,两个TEXT列(一个是“描述”,可能很大”),以及一些小的VARCHARS-大约23m行)。 I've got a couple indexes on for the PK, a TINYINT column, a product ID column, and a datetime column. 我在PK,TINYINT列,产品ID列和日期时间列上有几个索引。

I'm not doing excessive reading from the table, mostly writing to it and occasionally bringing in chunks of it to Solr. 我没有从表中进行过多的读取,主要是向表中写入数据,偶尔将其中的大部分带入Solr。

Anyways, a lot of people keep recommending to make for a large innodb_buffer_pool_size that is around the size of your data. 无论如何,许多人一直建议将innodb_buffer_pool_size设置为与数据大小差不多的大小。 Now I do have a dedicated instance for it but its only something like 2gb of memory or something. 现在我确实有一个专用的实例,但是它只有2GB的内存或类似的东西。

Am I missing something here or is this table just not the typical table they are recommending those types of settings for? 我是否在这里遗漏了一些东西?还是该表不是他们建议使用这些类型的设置的典型表? Because it seems to me like quite a bit overboard to reach for needing anywhere near that much memory. 因为在我看来,需要这么多内存的地方似乎有些过高。 The Index size on that table is about 1.6Gb. 该表上的索引大小约为1.6Gb。

Thanks for your help - would love to clear up this confusion Cheers 谢谢您的帮助-很想消除这种混乱。

Derr ..最终达到了我的预期-您希望innodb_buffer_pool_size足够大以包含InnnoDB索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM