Accelerate mysql index query using an ssd Hard Disk

Source: Internet
Author: User
Tags mysql index

Use an ssd hard disk to accelerate mysql index query. If the data volume is large but the ssd capacity is not large, you can consider storing the index data on the ssd, store the table data on the old hard disk. So how can mysql build index on ssd and use index data on ssd? 1. create several directories on ssd: mkdir/ssd/mysql_indexesmkdir/ssd/mysql_indexes/my_big_db_namechmod 700/ssd/mysql_indexeschown-R mysql: mysql/ssd/mysql_indexes 2. using the MyISAM engine, you can add the following configuration in mysql configuration to accelerate index reconstruction [mysqld] myisam_repair_threads = 10 3. finally, run the following query to change the INDEX data location of the mysql TABLE: alter table my_table index DIRECTORY = '/ssd/mysql_indexes/my_big_db_name'. After the INDEX of mysql is rebuilt, only then can we clearly feel that the database is getting faster.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.