The NoSQL data model in detail (IV.) Aggregation Type summary

Source: Internet
Author: User

backgroundin the first three articles, there are three types of databases in NoSQL that belong to the aggregation model: key-value, document-type, and column-family. The following is an analysis of the similarities and differences between the three aggregation data models so that we can understand the characteristics of each of them well. same Point

The common denominator of the three aggregation-oriented data models is that they all use aggregation, and there is an index key in the aggregation that can find its contents. When running on a cluster, aggregations are the focus, because the database must ensure that the data within the aggregation exists on the same node. Aggregation is the smallest unit of data for an update operation, and for transaction control, the aggregation is the operating unit, which is the appropriate size.

different points

The key-value data Model regards aggregation as an opaque whole, which means that the entire aggregation can only be detected based on the key, rather than just querying or getting part of it.

The aggregation of the document model is transparent to the data, so that only a subset of the data can be queried or fetched, but because the document has no schema, the database is not well tuned for the document structure when it wants to optimize storage and get some of the aggregations.

The column family model divides aggregations into column families, so that the database treats them as a unit of data within a row aggregation. There is some limitation to the structure of such aggregations, but the database can take advantage of this structure to improve its accessibility.

The NoSQL data model in detail (IV.) Aggregation Type summary

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.