MySQL Partitioning technology

Source: Internet
Author: User
Tags memory usage

Original: MySQL Partitioning technology

There are two main types of optimizations for massive data:

the way of large table splitting table; optimization of SQL statements Partitioning Technology:similar to horizontal segmentation, but it is a horizontal table at the logical level, which is still a table for the application One, Range mode1. Create a partitioned table can be seen under/usr/local/mysql/var/test/to generate so many files (26) 2. Create an unpartitioned tableyou can see the generated 3 files under/usr/local/mysql/var/test/. 3. Establish Load_part_tab storage 4. Add 800W datause commands under/usr/local/mysql/var/test/: watch-n1 ls-lh Dynamically view dynamic changes in each partition of the inserted datause the top order to see the CPU and memory usage 5, in the non-partitioned table also insert so much data 6. Test SQL Performance To view the number of rows affected 

Create an index  test SQL Performance again Add non-indexed field query

MySQL Partitioning technology

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.