当前位置:网站首页>什么情况下考虑分库分表
什么情况下考虑分库分表
2022-07-07 02:37:00 【阿东-007】
1.仅当数据库连接数不够用的情况下,采用分库的方式来提高数据库性能瓶颈
2.仅当单表存储数据量超过500w或者单表大小超过2G的时候,采用分表的形式来提高表的读和写的瓶颈
当上面两种情况同时出现的时候,就是需要考虑分库分表的时候。
业务场景中,需要提前考虑分库分表,比如未来3年内,如果你的表会出现上述情况,应该尽早做好分库分表。
边栏推荐
- 常用函数detect_image/predict
- 如何解决数据库插入数据显示SQLSTATE[HY000]: General error: 1364 Field ‘xxxxx‘ doesn‘t have a default value错误
- ANR 原理及实践
- Pinduoduo lost the lawsuit: "bargain for free" infringed the right to know but did not constitute fraud, and was sentenced to pay 400 yuan
- dolphinscheduler3.x本地启动
- 从零到一,教你搭建「CLIP 以文搜图」搜索服务(二):5 分钟实现原型
- Redis (I) -- getting to know redis for the first time
- POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...
- 线性代数(一)
- PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
猜你喜欢
多个kubernetes集群如何实现共享同一个存储
FPGA课程:JESD204B的应用场景(干货分享)
Leite smart home longhaiqi: from professional dimming to full house intelligence, 20 years of focus on professional achievements
How can I check the DOI number of a foreign document?
偏执的非合格公司
大促过后,销量与流量兼具,是否真的高枕无忧?
Handling hardfault in RT thread
当前发布的SKU(销售规格)信息中包含疑似与宝贝无关的字
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
Prompt for channel security on the super-v / device defender side when installing vmmare
随机推荐
JWT certification
Etcd database source code analysis -- starting from the start function of raftnode
Basic DOS commands
How to install swoole under window
精准时空行程流调系统—基于UWB超高精度定位系统
[GNN] graphic gnn:a gender Introduction (including video)
【NOI模拟赛】区域划分(结论,构造)
Symmetric binary tree [tree traversal]
POI export to excel: set font, color, row height adaptation, column width adaptation, lock cells, merge cells
大促过后,销量与流量兼具,是否真的高枕无忧?
unity3d学习笔记
[solution] final app status- undefined, exitcode- 16
华为机试题素数伴侣
MYSQL binlog相关命令
C interview 24 (pointer) define a double array with 20 elements a
Prompt for channel security on the super-v / device defender side when installing vmmare
uniapp开发小程序如何使用微信云托管或云函数进行云开发
软件测试到了35岁,真的就干不动了吗?
Google Chrome browser released patch 103.0.5060.114 to fix the 0-day vulnerability
Wechat applet hides the progress bar component of the video tag