marker-wu commented on issue #13343:
URL:
https://github.com/apache/shardingsphere/issues/13343#issuecomment-954357136
- !SHARDING
defaultDatabaseStrategy:
hint:
shardingAlgorithmName: database_hint
defaultTableStrategy:
none: ''
keyGenerators:
snowflake:
type: SNOWFLAKE
shardingAlgorithms:
t_order_item_inline:
props:
algorithm-expression: oms_order_items_${zid % 10}
type: INLINE
t_order_inline:
props:
algorithm-expression: oms_order_data_${zid % 10}
type: INLINE
database_hint:
props:
algorithmClassName:
org.apache.shardingsphere.proxy.custom.shardingstrategy.AKErpHintShardingAlgorithm
strategy: HINT
type: CLASS_BASED
tables:
oms_order_data:
actualDataNodes: hot_ds_0.oms_order_data_${0..9}
logicTable: oms_order_data
tableStrategy:
standard:
shardingAlgorithmName: t_order_inline
shardingColumn: zid
oms_order_items:
actualDataNodes: hot_ds_0.oms_order_items_${0..9}
logicTable: oms_order_items
tableStrategy:
standard:
shardingAlgorithmName: t_order_item_inline
shardingColumn: zid
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]