Partitioning and sharding in the [original] Database

Source: Internet
Author: User

1. How to understand the definition

In Chinese, partitioning and sharding all have the meaning of partitioning. On the big side, the actions performed by these two words are really related to partitioning. Partitioning on many occasions is vertical partitioning abbreviation, then naturally, sharding is horizon partitioning. But at this time, two nouns, vertical and horizon, were introduced. What do you do with vertic and horizon? Where is the difference?

2. Starting from a specific point

To understand vertical partitioning and horizon partitioning, you should be aware of the point at which you stand to differentiate these two actions. Obviously, we've been talking about data, so of course we're standing in the data line angle.

Vertical partitioning refers to breaking the logical rows of data into multiple rows of data (but still on the same physical machine). The reason for this can be performance, availability, or maintainability.

Horizon Partitioning (sharding) refers to the spread of stored data across multiple physical machines. But the columns for each row of data are the same. Such a heavy reason can also be for performance, usability, or maintainability.

3. Summary

Vertical partitioning is the angle of the columns (column) to be partitioned, and the horizon partitioning is partitioned from the line (row) angle.

4. References

1.https://www.quora.com/whats-the-difference-between-sharding-db-tables-and-partitioning-them

2.http://stackoverflow.com/questions/20388923/database-partitioning-horizontal-vs-vertical-difference-between-normalizatio

Partitioning and sharding in the [original] Database

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.