提交 75bab2f3 编写于 作者: T tristaZero

modify yaml

上级 bc406803
......@@ -61,8 +61,9 @@ shardingRule:
inline:
shardingColumn: order_id
algorithmExpression: t_order_${order_id % 2}
keyGeneratorColumnName: order_id
keyGeneratorClassName: io.shardingsphere.core.keygen.DefaultKeyGenerator
keyGenerator:
keyGeneratorColumnName: order_id
keyGeneratorClassName: io.shardingsphere.core.keygen.DefaultKeyGenerator
logicIndex: order_index
t_order_item:
actualDataNodes: ds_${0..1}.t_order_item_${0..1}
......@@ -82,7 +83,8 @@ shardingRule:
algorithmExpression: ds_${order_id % 2}
defaultTableStrategy:
none:
defaultKeyGeneratorClassName: io.shardingsphere.core.keygen.DefaultKeyGenerator
defaultKeyGenerator:
keyGeneratorType: SNOWFLAKE
masterSlaveRules:
ds_0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册