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 2021/05/17 23:51:51 UTC

[GitHub] [shardingsphere] RaigorJiang commented on issue #10357: Too many keys are generated

RaigorJiang commented on issue #10357:
URL: https://github.com/apache/shardingsphere/issues/10357#issuecomment-842718000


   Hi @SeniorBoy 
   ClassBasedShardingAlgorithm is not a interface, it's just a way to configure a custom sharding algorithm.
   For example:
   1. Define a custom sharding algorithm implements StandardShardingAlgorithm, named 'MyShardingAlgorithm'
   2. Configure 'shardingAlgorithms' with 'MyShardingAlgorithm', like: 
   >   shardingAlgorithms:
        &emsp;<sharding-algorithm-name\>:
        &emsp;&emsp;type: CLASS_BASED
        &emsp;&emsp;props:
        &emsp;&emsp;&emsp;strategy: standard
        &emsp;&emsp;&emsp;algorithmClassName: org.xxx.example.MyShardingAlgorithm
      
   I hope this information is useful to you.
   
   


-- 
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.

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