Data Node
As the atomic unit of sharding, it consists of data source name and actual table name, e.g. ds_0.t_order_0
.
Mapping relationship between logic tables and actual tables and can be divided into two kinds: uniform topology and user-defined topology.
Uniform topology
It means that tables are evenly distributed in each data source, for example:
db0
├── t_order0
└── t_order1
db1
├── t_order0
└── t_order1
The data node configurations will be as follows:
db0.t_order0, db0.t_order1, db1.t_order0, db1.t_order1
User-defined topology
It means that tables are distributed with certain rules, for example:
db0
├── t_order0
└── t_order1
db1
├── t_order2
├── t_order3
└── t_order4
The data node configurations will be as follows:
db0.t_order0, db0.t_order1, db1.t_order2, db1.t_order3, db1.t_order4
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .