数据分片
配置项说明
rules:
- !SHARDING
tables:
<logic-table-name> (+):
actualDataNodes (?):
databaseStrategy (?):
standard:
shardingColumn:
shardingAlgorithmName:
complex:
shardingColumns:
shardingAlgorithmName:
hint:
shardingAlgorithmName:
none:
tableStrategy:
keyGenerateStrategy:
column:
keyGeneratorName:
autoTables:
t_order_auto:
actualDataSources (?):
shardingStrategy:
standard:
shardingColumn:
shardingAlgorithmName:
bindingTables (+):
- <logic_table_name_1, logic_table_name_2, ...>
- <logic_table_name_1, logic_table_name_2, ...>
broadcastTables (+): # 广播表规则列表
- <table-name>
- <table-name>
defaultDatabaseStrategy:
defaultTableStrategy:
defaultKeyGenerateStrategy:
defaultShardingColumn:
shardingAlgorithms:
<sharding-algorithm-name> (+):
type:
props:
keyGenerators:
<key-generate-algorithm-name> (+):
type:
props: