zhaojinchao95 opened a new issue, #38178:
URL: https://github.com/apache/shardingsphere/issues/38178
Hi all,
To better solve the primary key generation problem in distributed
systems,we will to change sharding api to to support column-level
auto-increment and global auto-increment.
Before:
```
rules:
- !SHARDING
tables:
t_order:
actualDataNodes: ds_${0..1}.t_order_${0..1}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_inline
keyGenerateStrategy:
column: order_item_id
keyGeneratorName: snowflake
keyGenerators:
snowflake:
type: SNOWFLAKE
```
After:
```
rules:
- !SHARDING
tables:
t_order:
actualDataNodes: ds_${0..1}.t_order_${0..1}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_inline
keyGenerateStrategies:
t_order:
keyGenerateType: column
keyGeneratorName: snowflake
logicTable: t_order
keyGenerateColumn: id
keyGenerators:
snowflake:
type: SNOWFLAKE
```
--
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]