MySQL Database Design notes and summaries (4) Maintenance optimization

Source: Internet
Author: User

"Maintenance and optimisation of the work"

① Maintaining data dictionaries

② Maintaining Indexes

③ Maintaining table structure

④ horizontal split or vertical splitting of a table at the appropriate time

"Maintain Data dictionary"

A data dictionary is maintained using third-party tools

b Use the Memo field of the database itself to maintain the data dictionary, for example MySQL:

C Export Data dictionary

"Maintain index"

How do I select the appropriate column to index?

"Considerations for maintaining Indexes"

"Maintain table Structure"

Precautions:

"Appropriate operations in the database"

1. Suitable for batch operation

2. Select * can cause I/O waste

3. Using a function, the index on the column will not work

4. It is best to use professional search engine instead of full-text index in database

"Vertical split of table" solves the width problem of the table

Horizontal split of table solves the problem of the amount of data in a single table

Primary KEY hashing: hashes a primary key value, such as a modulo value for a primary key.

MySQL Database Design notes and summaries (4) Maintenance optimization

Related Article

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.