dyrnq / sharding-demo

sharding-jdbc 读写分离与分库分表的小 demo
0 stars 0 forks source link

Sharding And Partitioning #9

Open dyrnq opened 11 hours ago

dyrnq commented 11 hours ago
db table e.g.
1 1 tb_user
1 m tb_user_0 / tb_user_1 / tb_user_m
n 1 db_0.tb_user / db_1.tb_user / db_n.tb_user
n m db_0.tb_user_0 / db_0.tb_user_1 /db_1.tb_user_0 / db_1.tb_user_1
dyrnq commented 9 hours ago

分库分表的种类

水平分库(Horizontal Sharding):