The advantages and disadvantages of paradigm and inverse paradigm in MySQL

Source: Internet
Author: User

The advantages of normalization:

    • Normalization of update operations is usually faster than inverse normalization.

    • When the data is well normalized, there is little or no duplication, so you only need to modify less data.

    • A normalized table is usually smaller and better placed in memory, so it is faster to perform the operation.

    • There is little extra data that means fewer distinct or group by statements are needed to retrieve list data.


Disadvantages of Normalization:

    • Canonical design schemas often need to be associated. A slightly more complex query statement may require at least one association, perhaps more, in a schema-conforming paradigm. This can be expensive, and may invalidate some index policies. For example, normalization might place columns in different tables, and those columns can have data in the same index in the same table.


Advantages of Inverse paradigm

    • Can be very good to avoid association.

    • If you do not need the associated table, the worst case for most queries, that is, the index is not used, full table scan. This can be much faster than association when the data currency is large, thus avoiding random I/O.

In the real world, it is very rare to use the paradigm or inverse paradigm of schema. Instead, it is possible to use partially normalized schemas, cache tables, and other techniques. The most common way to reverse-normalized data is to copy or cache the same specific columns in different tables.




This article from "Sharing learning" blog, declined reprint!

The advantages and disadvantages of paradigm and inverse paradigm in MySQL

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.