MySQL range partition (2), mysqlrange Partition

Source: Internet
Author: User

MySQL range partition (2), mysqlrange Partition

MySQL range partitions are used most often. For details, see section 1.

Example: Here is my personal learning Summary-> details --> if you have any questions, please come and talk about it.





Mysql Partitioned an existing table with code to help you modify it.

Change rance to RANGE.

What if the range partition method in mysql conflicts with the primary key? What is the impact of having no primary key in innodb?

If innodb does not have an index, a hidden clustered index Rowid is generated by default.

It depends on your business logic,

My opinion: removing the primary key will not affect the innodb. If you use a hidden index, you can consider increasing the partition size as much as possible and keep the write order as much as possible, which will also improve the efficiency.

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.