query optimization - Mysql key_buffer_size already 16GB but some fulltext searches are still slow -


i have query w/ full text search takes 5 - 10 secs. key_buffer_size 16gb. table has 15 million records , has compound fulltext index on fields: categories , company.

table size:
data length - 0.9gb
index length - 1.1gb

    select c.id basetable c      match(c.categories, c.company)      against('+keyword1 +keyword2 +keyword3' in boolean mode)     limit 100 

query results:
only 88 rows

query status:
key_read_requests - 4414336
key_reads - 1029
key_write_requests - 12
key_writes - 2
handler_read_next - 89

mysql global variables:
key_buffer_size - 16gb
key_cache_age_threshold - 300
key_cache_block_size - 1024
key_cache_division_limit - 100
max_heap_table_size - 6gb
tmp_table_size - 6gb

server:
dual xeons cpus
32gb ram
hd 15krpm.

note not queries slow. less second; depends on keywords used on full text search.

do have thoughts on how improve this?


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -