You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/12/13 09:29:27 UTC

[GitHub] [shardingsphere] youngMvcBrother commented on issue #22746: WorkerId

youngMvcBrother commented on issue #22746:
URL: https://github.com/apache/shardingsphere/issues/22746#issuecomment-1348041613

   > Sorry, we are a production environment, is there any alternative plan now @sandynz
   
   @1210958801 
   
   **My Solution;Can I help you?**
   
   add configure
   ```yaml
       defaultKeyGenerateStrategy:
         column: user_id
         keyGeneratorName: snowflake
   ```
   
   
   **issues source:**
   _org.apache.shardingsphere.sharding.rule.ShardingRule_ instantiation; generate DefaultKeyGenerateStrategy overrides SnowflakeKeyGenerateAlgorithm;
   **when generating DefaultKeyGenerateStrategy , prop is null;**
   **If DefaultKeyGenerateStrategy  is set, it will not be overwritten.**
   
   ![image](https://user-images.githubusercontent.com/13623260/207279184-512204be-7139-46d6-8f9c-f43fb2982473.png)
   
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org