(5) General principles for using the above four models

Source: Internet
Author: User

Serialization 6

Original: fat Liu (please indicate the source and author for reprinting. Thank you .)

(5) General principles for using the above four models

1.When should I use the "primary extension mode "? The number of objects is small; the attributes of each object are different; the attributes of each object can be completely determined in the database design phase; each extension object has independent and relatively complex business processing requirements. In this case, the main extension mode is used ". The common attributes of each object are extracted and designed as the "main table". The remaining attributes of each object are designed as the corresponding "extended table ", the "primary table" and each "extended table" Create a one-to-one relationship.2.When should I use the "master-slave mode "? The number of objects is large and not fixed; the attributes of each object are almost identical; the attributes of the object can be completely determined in the database design stage; each object has no independent business processing requirements, in this case, the "master-slave mode" is used ". Design each object as a "Slave table" record and establish a one-to-many relationship with the "master table" object.3.When should I use "name-value mode "? The number of objects is very large; the attributes of each object are quite different; the object attributes cannot be determined during the database design stage, or are greatly changed during system operation; each object does not have an independent business processing requirement. In this case, the "name value" mode is used ".4.When can I use "many-to-many mode "? The two objects are in a one-to-multiple relationship ".

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.