当前位置:网站首页>Under what circumstances should we consider sub database and sub table

Under what circumstances should we consider sub database and sub table

2022-07-07 06:49:00 Adong-007

1. Only when the number of database connections is insufficient , Adopt the way of sub database to improve the bottleneck of database performance
2. Only when the amount of data stored in a single table exceeds 500w Or the size of a single table exceeds 2G When , Adopt the form of sub table to improve the bottleneck of table reading and writing

When the above two situations occur at the same time , That is, when we need to consider the sub database and sub table .

In the business scenario , We need to consider the sub database and sub table in advance , Like the future 3 During the year , If this happens to your watch , We should do a good job of dividing the database and table as soon as possible .

原网站

版权声明
本文为[Adong-007]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070237206708.html