Daily Java side (Part2 database) [19/11/28]

Author: The story I forgot ¢
personal micro-channel public number: program ape fight with

1. How to design a relational database

image

As shown above, it is first divided into two parts:

1. The memory section: similar to a file system, the data is stored to a persistent device, such as a mechanical hard drive, solid state, etc.

2. The part program example: management of the logical storage,

2.1 Storage Management: converting logic data into physical storage relationship

2.2 caching: optimize efficiency

2.3 SQL Analysis: speak sql statement parsing

2.4 log management: recording operation

2.5 division of authority: multi-user management

2.6 disaster recovery mechanisms: Disaster Recovery module (Tugan hung up, how to restore)

2.7 Index Management: Optimizing the efficiency of data query

2.8 lock management: the database supports concurrent operation

2. The index module

2.1 Why do you want to use the index?

In order to quickly query data; (corresponding to a full table scan to speak, follow-up blog / public number will be in-depth answers)

2.2 What information can become an index?

Primary key, unique key, common key, etc. (subsequent in-depth answers)

2.3 the index data structure

Generating the index, the establishment of e binary tree binary search

Generating the index, the establishment of B-Tree structure look

Generating indexes, with B + -Tree lookup structure (Mysql)

Generating the index, the establishment of structures to find Hash

(Follow-up in-depth answers)

Guess you like

Origin www.cnblogs.com/jsccc520/p/11954201.html