How to figure out if mysql index fits entirely in memory

后端 未结 2 856
春和景丽
春和景丽 2020-12-13 02:38

Is there a way to determine whether a mysql index fits entirely in available memory? If so, how would I:

  • Determine size of mysql indexes
  • Determine ava
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 03:05

    To find memory available to MySQL, look in my.cnf, likely located at: /etc/mysql/my.cnf

    key_buffer_size = 264M
    

    To find size of indexes for a table: SHOW TABLE status FROM [DBNAME]

提交回复
热议问题