当前位置:网站首页>分库分表
分库分表
2022-07-17 08:47:00 【InfoQ】
分库分表的演进
- 根据uid做hash
- 根据创建时间区间做分表 当然也肯定有其他更适合的字段,这要根据业务而定。以上的分库思路如下图所示:
注意事项
小结
- 不要分库分表
- 如果对数据量的庞大有预估,不要用mysql。毕竟有很多NoSQL支持auto sharding了。
- 真的要分库分表,一定要摸清中间件的使用说明,完全驾驭才能去操作
- 真的要分库分表,一次就分个64个或者更多,可以保证用到你离职或者重构之前
边栏推荐
猜你喜欢
![[face recognition] face recognition based on histogram histogram with matlab code](/img/a6/ae776d084a207647501ca951e32000.png)
[face recognition] face recognition based on histogram histogram with matlab code
![[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code](/img/e7/68fa042cae0bd10a06f08bba738c12.png)
[handwritten numeral recognition] handwritten numeral recognition based on lenet network with matlab code

AuthTalk 第一期预告 | 全面拆解多租户解决方案

Event loop, macro task, micro task

【人脸识别】基于直方图Histogram实现人脸识别附matlab代码

一文,教你实现单点登录
![Paddleserving service deployment tensorrt reports an error, shape of TRT subgraph is [-1, -1768],](/img/15/5dde91261a44fcfeda4d8436bb8559.png)
Paddleserving service deployment tensorrt reports an error, shape of TRT subgraph is [-1, -1768],

Solutions to license invalidation caused by MATLAB update

ES6 learning function (strict mode, higher-order function, closure)

Idea debug according to conditional breakpoints
随机推荐
Introduction to deep learning exercises sorting in the first week of deep learning
What is memory overflow
Cocos Shader入门基础七
二进制安装 mysql 初始化密码问题
MySQL索引(一)
半透明双层玻璃侧厚
TP5 wechat withdrawal merchants transfer to change (copying is available)
Redis
百度Apoll
凸面镜面3D玻璃轮廓扫描
Li Kou 43 string multiplication note
Solutions to license invalidation caused by MATLAB update
PHP store password
Expanding hard disk in VMWare
小说里的编程 【连载之十四】元宇宙里月亮弯弯
JS learning notes 01-03 - Reference of this, global scope, method
LeetCode 0116. Populate the next right node pointer for each node
mysql 初始化修改密码问题
MySQL读写分离
Hcip - Comprehensive Experiment of OSPF