MySQL table partitioning advantages and classification analysis MySQL DBA learning

Source: Internet
Author: User
Tags dba one table

table Partitioning is the partitioning of a table's data according to a certain level of rulesintodifferent logical blocks, and physically stored separately, this rule is called partition function,can have different partition rules. through show Plugins statement to see if the current MySQL Support table partitioning feature. The table partitioning feature of the MySQL5.7 Community version is enabled by default. However, when a table contains a primary key or unique key, each field that is used as a partition function must be all or part of the unique key and primary key in the table, or you cannot create a partitioned table.  

the main advantages of table partitioning are:

1. can store more data in one table, break the disk limit or file system limit ;

2. It is easy to remove outdated or historical data from the table in the tables partition. As long as the corresponding partition is removed you can  

3. for some queries and modification statements, you can automatically narrow the data to one or several table partitions, optimize the execution efficiency of the statement , and execute the statement by displaying the specified table partition .

table partition types are:

1.rangeTable partition: Range table partition, according to a certain range of values to determine the data contained in each partition ;

2.listtable partition: Table partition, according to a certain value to determine the data contained in each partition ;

3.Hash Table partition: Hashtable partition, according to a custom function return value to determine the data contained in each partition ;

4.key table partition: Key table partition, similar to hash table partition, just use MySQL's own hash function to determine the data contained in each partition .

Most of the databases used by internet companies are MySQL , want to stand out from the many IT workers, need to have advanced technology, learning to add value is essential. The way of learning is your insistence. the old boy education MySQL DBA course, after several updates the course, put an end to the paper , the whole enterprise real case unifies the theory instruction, wants to study the MySQL dba 's knowledge deeply, Can pay attention to the old boy education.


MySQL table partitioning advantages and classification analysis MySQL DBA learning

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.