当前位置:网站首页>Database optimization

Database optimization

2022-06-11 14:44:00 The wine pot of heaven in the dream

 Insert picture description here
 Insert picture description here
sql How to distribute to different mysql, How to keep high availability

Data in multiple libraries , How to keep id Can not repeat

Landing is complicated

 Insert picture description here

mycat The sub database and sub table launched by Alibaba In addition, people in the community are maintaining , It has little to do with ALI

Improvement is slow , The promising thing is shardingsphere, The only top product of Apache

Quick version update , Able to handle all kinds of situations
 Insert picture description here
 Insert picture description here

Tips io performance

vertical : Divided into different libraries
level , One table is divided into different tables , Piecemeal construction , Allocation policy

 Insert picture description here
Generally, take mold and slice
The double 11 usually needs to expand the database ,

Split by time stay oracle Yes
 Insert picture description here
Range slicing plus mold taking

 Insert picture description here
 Insert picture description here
shardingsphere rely on
 Insert picture description here

 Insert picture description here

Fragmentation strategy

 Insert picture description here

id

snowflake uuid

原网站

版权声明
本文为[The wine pot of heaven in the dream]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111420369234.html