tristaZero edited a comment on issue #5017: [DISCUSS] Brand new sharding 
configuration API of Release 5.x
URL: 
https://github.com/apache/incubator-shardingsphere/issues/5017#issuecomment-606449810
 
 
   Looking forward to your suggestions and comments for brand new sharding 
configuration API. :)
   Here is the initial design for API.
   
   **The old one**
   ```
   shardingRule:
     tables: 
       t_order:  
         databaseStrategy: 
           standard:  
             shardingColumn:  
               preciseAlgorithmClassName: 
               rangeAlgorithmClassName: 
             complex:  
               shardingColumns:  
               algorithmClassName: 
             inline:  
               shardingColumn:  
               algorithmInlineExpression:  
             hint:  
               algorithmClassName: 
              none:  
         tableStrategy:
   ```
   **The new one**
   ```
   shardingRule:
     tables: 
       t_order: 
         databaseStrategy: 
           standard: 
             shardingColumn: order_id
             shardingAlgorithm:
               type: Inline
               props:
                 ShardingDBVolume: 2
                 ShardingTBVolume: 4
           standard: 
             shardingColumn: order_id
             shardingAlgorithm:
               type: class
               props:
                 DBClassName: xxxx
                 TBClassName: xxxxxx
           complex: 
             shardingColumns: year, month
             shardingAlgorithm:
               type: complex
           hint: 
             shardingAlgorithm:
               type: hint
           None:
             shardingAlgorithm:
               type: none
         tableStrategy:
   ```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to