MySQL Forums
Forum List  »  Optimizer & Parser

Re: Slow Database
Posted by: Peter Brawley
Date: May 31, 2006 12:06PM

SHOW STATUS LIKE 'key%';

When read efficiency, key_read_requests/key_reads, is less than 80%, you likely need bigger caches, eg add memory and/or advance key cache mem alloc. And/or revisit how queries use indexes.

Try CACHE INDEX for large indexes referenced in frequent queries

Try LOAD INDEX tbl1 key1 [IGNORE LEAVES] if key_buffer_size is big enough for an entire index +/- leaf nodes

Lots of tips at
http://dev.mysql.com/doc/refman/5.1/en/optimizing-the-server.html
http://dev.mysql.com/doc/refman/5.1/en/query-cache-configuration.html.

PB

Options: Reply• Quote


Subject
Views
Written By
Posted
9712
May 31, 2006 11:29AM
Re: Slow Database
3836
May 31, 2006 12:06PM
3161
May 31, 2006 12:43PM
2971
May 31, 2006 07:43PM
2884
June 01, 2006 12:19AM
3622
June 01, 2006 04:14AM
2773
June 01, 2006 06:40PM
3311
June 02, 2006 02:17AM
3103
June 05, 2006 10:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.