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/05/06 11:51:38 UTC

[GitHub] [shardingsphere] galaxylqx opened a new issue, #17391: upgrade ModShardingAlgorithm

galaxylqx opened a new issue, #17391:
URL: https://github.com/apache/shardingsphere/issues/17391

   ## Feature Request
   
   The first optimization,the current ModShardingAlgorithm algorithm only supports taking the modulo of the entire number, and cannot take the modulo of a few digits. There is often a need to take the modulo of a few digits in the business. It is hoped that the enhanced version will meet the requirements
   for example
   id = 12345 
   Currently supports 
   12345 % 2
   
   hope to support
   1234% 2
   123% 2
   12% 2
   1% 2
   
   props:
       reverse-start-index: 0 #default 0,start with end
   
   The second optimization, the target table name supports adding zero.
   props:
       zero-padding: false #default false


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

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


[GitHub] [shardingsphere] terrymanu closed issue #17391: upgrade ModShardingAlgorithm

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #17391: upgrade ModShardingAlgorithm 
URL: https://github.com/apache/shardingsphere/issues/17391


-- 
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] terrymanu commented on issue #17391: upgrade ModShardingAlgorithm

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

   Good suggestion!


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