1. MySQL optimization technology - table design

The economic foundation determines the superstructure. If the database table design has congenital defects, it will be very difficult to optimize in the later stage. Therefore, certain principles need to be followed when creating a database. Basically, the table design needs to meet the three paradigms.

 

First normal form: The first normal form is an atomic constraint on attributes, which requires that the column is atomic and cannot be decomposed again (relational databases automatically satisfy a normal form);

Second normal form: The second normal form is a unique constraint on records, requiring records in the table to be unique;

Third Normal Form: The third normal form is a constraint on field redundancy, which requires that fields have no redundancy.

 

For some other principles of database design, you can refer to this article

11 Important Database Design Rules

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326503334&siteId=291194637