Announcement

Announcement Module
Collapse
No announcement yet.

key_buffer_size > indexes' size?

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • key_buffer_size > indexes' size?

    Hello all,


    First of all: thanks for this great forum!

    I was wondering if the key_buffer_size should always be superior to the total size of all indexes?...

    For example, let's say all my indexes takes a 16M space, should I tweak the key_buffer_size to 17M?


    Thanks!

  • #2
    It depends on a lot of factors.

    If your key buffer is bigger than index it means all your index will fit in key cache, which is good. This is however impossible for large databases.

    Plus you need to think about other needs - innodb buffer pool, memory for OS to cache MyISAM table data etc.

    If you have memory for all of these sure go ahead and do it.

    Comment


    • #3
      I wish my indexes only totaled up to 16megs!!!

      Comment

      Working...
      X