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/11/26 07:21:45 UTC

[GitHub] [shardingsphere] Sfaecp opened a new issue #13815: How do I configure a custom sharding algorithm in version 5.x?

Sfaecp opened a new issue #13815:
URL: https://github.com/apache/shardingsphere/issues/13815


   To customize the sharding algorithm configuration, I only found the configuration before 5.x, but did not find the configuration before 5.x.
   My configuration is as follows:
   spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.sharding-column=order_id
   spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.sharding-algorithm-name=table-inline
   
   spring.shardingsphere.rules.sharding.sharding-algorithms.table-inline.type=INLINE
   spring.shardingsphere.rules.sharding.sharding-algorithms.table-inline.props.algorithmClassName=com.lbx.dividedbtable.algorithm.PowerfulGreateTableAlgorithm
   


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



[GitHub] [shardingsphere] Sfaecp closed issue #13815: How do I configure a custom sharding algorithm in version 5.x?

Posted by GitBox <gi...@apache.org>.
Sfaecp closed issue #13815:
URL: https://github.com/apache/shardingsphere/issues/13815


   


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



[GitHub] [shardingsphere] strongduanmu commented on issue #13815: How do I configure a custom sharding algorithm in version 5.x?

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #13815:
URL: https://github.com/apache/shardingsphere/issues/13815#issuecomment-979764058


   Hi @Sfaecp, you can use `class_based` algorithm. For more detailed information, you can refer https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/builtin-algorithm/sharding/#%E8%87%AA%E5%AE%9A%E4%B9%89%E7%B1%BB%E5%88%86%E7%89%87%E7%AE%97%E6%B3%95


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



[GitHub] [shardingsphere] Sfaecp commented on issue #13815: How do I configure a custom sharding algorithm in version 5.x?

Posted by GitBox <gi...@apache.org>.
Sfaecp commented on issue #13815:
URL: https://github.com/apache/shardingsphere/issues/13815#issuecomment-979769418


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

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

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