当前位置:网站首页>MySQL -- standardize database design
MySQL -- standardize database design
2022-07-03 21:03:00 【Can't learn java】
List of articles
1、 Why design a database
- When the database is complex , We need to design
- Bad database design :
- data redundancy , Waste space
- Database insertion and deletion are troublesome ( Shielding uses physical foreign keys )
- The performance of the program is poor
- Good database design :
- Save a space
- Ensure the completion of the database
- It is convenient to develop the system
- Database design :
- Analyze requirements : Analyze the needs of business and demand processing at the moment
- Outline design : Design diagrams E-R chart
2、 Three paradigms
Why data normalization is needed
- Repetition of information
- Update exception
- Insertion exception : Unable to display information properly
- Delete exception : Loss of valid information
2.1、 First normal form (1NF)
- Atomicity : Ensure that a column cannot be further divided
2.2、 Second normal form (2NF)
- Premise : Satisfy the first paradigm
- Each table only describes one thing
2.3、 Third normal form (3NF)
- Premise : Satisfy the first paradigm and the second paradigm
- The third paradigm needs to ensure that no column of data in the data table is directly related to the primary key , Not indirectly .
3、 Normative and performance issues
- The associated query cannot have more than three tables
- Consider the needs and goals of commercialization : Database performance is more important
- When it comes to regulating performance , It needs proper consideration
Normative
- Deliberately add some redundant fields to some tables .( From multi table query to single table query )
- Intentionally add some calculation Columns ( Reduce the amount of big data to the query of small data , Indexes )
边栏推荐
- [postgresql]postgresql custom function returns an instance of table type
- It is discussed that the success of Vit lies not in attention. Shiftvit uses the precision of swing transformer to outperform the speed of RESNET
- [secretly kill little buddy pytorch20 days -day02- example of image data modeling process]
- Etcd raft Based Consistency assurance
- Kernel symbol table
- Gauss elimination solves linear equations (floating-point Gauss elimination template)
- 浅析 Ref-NeRF
- In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
- Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
- 淺析 Ref-NeRF
猜你喜欢
QT6 QML book/qt quick 3d/ Basics
Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]
Yyds dry goods inventory TCP & UDP
强基计划 数学相关书籍 推荐
MySQL——数据库备份
Is it OK for fresh students to change careers to do software testing? The senior answered with his own experience
Summary of common operation and maintenance commands
Etcd 基于Raft的一致性保证
MySQL——索引
In 2021, the global foam protection packaging revenue was about $5286.7 million, and it is expected to reach $6615 million in 2028
随机推荐
@Scenario of transactional annotation invalidation
浅议.NET遗留应用改造
Transformer structure analysis and the principle of blocks in it
Reinforcement learning - learning notes 1 | basic concepts
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
Compilation Principle -- syntax analysis
Gee calculated area
Scientific research document management Zotero
Instructions for common methods of regular expressions
不同业务场景该如何选择缓存的读写策略?
Is it OK for fresh students to change careers to do software testing? The senior answered with his own experience
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
Introduction to golang garbage collection
TLS environment construction and plaintext analysis
In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
Q&A:Transformer, Bert, ELMO, GPT, VIT
[postgresql]postgresql custom function returns an instance of table type
Ask and answer: dispel your doubts about the virtual function mechanism
Hcie security Day10: six experiments to understand VRRP and reliability
Qualcomm platform WiFi -- P2P issue