当前位置:网站首页>Type of sub database and sub table
Type of sub database and sub table
2022-06-22 08:11:00 【abckingaa】
Introduction to types of sub database and sub table
Once the amount of data in the business table is large , From a maintenance and performance point of view , Whatever CRUD operation , It is an extremely resource consuming thing for the database . Even if the index is set , It is still impossible to hide the fact that the database performance is degraded due to the large amount of data , At this time, the database should be Horizontal zoning (sharding, That is, sub warehouse and sub table ), Allocate the massive data maintained in the original table to N Sub tables are stored and maintained .
The horizontal sub table can be divided into 3 Kind of : Table only 、 Only branch library 、 Sub database and sub table , The following figure shows these three cases :

Table only : take db In the library user The table is divided into 2 A minute table ,user_0 and user_1, The two tables are also in the same library .
Only branch library : take db The library is split into db_0 and db_1 Two libraries , At the same time db_0 and db_1 Create a new one in the library user surface ,db_0.user Table and db_1.user Only the original... Are stored in the table db.user Some of the data in the table .
Sub database and sub table : take db The library is split into db_0 and db_1 Two libraries ,db_0 Contained in the user_0、user_1 Two sub tables ,db_1 Contained in the user_2、user_3 Two sub tables .
The following figure illustrates the case of sub database and sub table , How data is split : hypothesis db Library user There used to be 4000W Data , You will now db The library is split into 2 A sub Treasury db_0 and db_1,user The table is divided into user_0、user_1、user_2、user_3 Four sub tables , Each sub table stores 1000W Data .
边栏推荐
- AutoCAD 2020.3 Chinese Version (old version)
- 2022年CIO面临的七大挑战及应对方法
- Orientdb batch execute SQL
- [Oracle database] wet nurse tutorial day15 DDL, DML, index, view, sequence and deadlock are enough
- 【Oracle 數據庫】奶媽式教程 day13 日期函數
- mapTalks:基础操作与WMS/WMTS地图服务加载
- Square array cyclic right shift
- Oracle gets the working day time between two dates
- MySQL avoids the method of repeatedly inserting records (ignore, replace, on duplicate key update)
- Microsoft Remote Desktop 10.7.6 official
猜你喜欢

Detailed explanation of subnet mask

每周推荐短视频:什么是“计算世界”?

Mt4/mql4 getting started to be proficient in EA tutorial lesson 6 - common functions of MQL language (VI) - common order function
![[Oracle database] mammy tutorial day13 date function](/img/ca/90aaa682ec393b1531060377276ca6.png)
[Oracle database] mammy tutorial day13 date function

【Oracle 数据库】奶妈式教程 day11 数值函数

Mt4-mql4 language EA automatic transaction programming introduction to proficiency

OSI and tcp/ip

Mt4/mql4 getting started to mastering EA tutorial lesson 8 - common functions of MQL language (VIII) - common time function

Some problems caused by null data in MySQL

EURUSD,H1: invalid lots amount for OrderSend function
随机推荐
成为一名卓越云架构师要具备的五项技能
C # interface holding structure causes packing problem
Model electricity experiment -- Experiment 2 JFET common source amplifier circuit
Store the numbers in the array in reverse order
Failed to access the ES installed on Tencent ECs, but the solution to accessing the ES successfully on the server
(7)双向链表
Summary of basic knowledge of Oracle database SQL statement III: data operation language (DQL)
Asynchronous sending and receiving of message passing based concurrent programming (MPI)
模电实验——实验一 晶体管共射极单管放大器
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
Dom4j+xpath parsing XML files
Excellent cases of data visualization
【 Oracle database】 Nursery Mother Tutorial day13 date Function
DTD约束
C语言实现往MySQL插入和读取图片
【Oracle 数据库】奶妈式教程 day13 日期函数
C#读写txt文件到listview
RAID technology
Kubernetes practice
Using KDJ metrics on MT4