key_buffer_size > indexes' size? [message #1711] |
Sun, 02 September 2007 11:47  |
 |
jcn50 Messages: 44 Registered: September 2007 |
Member |
|
|
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!
[Updated on: Sun, 02 September 2007 12:05] Enjoy the Net!
|
|
|
| Re: key_buffer_size > indexes' size? [message #1724 is a reply to message #1711 ] |
Mon, 03 September 2007 08:26   |
Peter Messages: 405 Registered: August 2006 |
Senior Member Super Guru |
|
|
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.
Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
|
|
|
|