当前位置:网站首页>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 )
边栏推荐
- XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
- 运维各常用命令总结
- [Yugong series] go teaching course 002 go language environment installation in July 2022
- TLS environment construction and plaintext analysis
- Thread, thread stack, method stack, the difference of creating thread
- Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
- 2022 safety officer-c certificate examination and safety officer-c certificate registration examination
- 淺析 Ref-NeRF
- Compilation Principle -- syntax analysis
- The 12th Blue Bridge Cup
猜你喜欢

The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%

强化學習-學習筆記1 | 基礎概念

@Scenario of transactional annotation invalidation

Shortest path problem of graph theory (acwing template)

Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress

鹏城杯 WEB_WP

Rhcsa third day operation

强化学习-学习笔记1 | 基础概念

MySQL master-slave synchronization principle

浅议.NET遗留应用改造
随机推荐
Service discovery and load balancing mechanism -service
"Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
[secretly kill little buddy pytorch20 days -day02- example of image data modeling process]
Phpexcel import export
Transformation between yaml, Jason and Dict
jvm jni 及 pvm pybind11 大批量数据传输及优化
How to set the system volume programmatically- How to programmatically set the system volume?
Memory analyzer (MAT)
SQL injection - Fundamentals of SQL database operation
鹏城杯 WEB_WP
强化學習-學習筆記1 | 基礎概念
Discussion Net legacy application transformation
浅议.NET遗留应用改造
Set, weakset, map, weakmap in ES6
强化学习-学习笔记1 | 基础概念
浅析 Ref-NeRF
Line segment tree blue book explanation + classic example acwing 1275 Maximum number
Wireless network (preprocessing + concurrent search)
Offset related concepts + drag modal box case
11-grom-v2-05-initialization