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 2020/07/13 09:13:38 UTC

[GitHub] [shardingsphere] yu258 opened a new issue #6333: The hash table

yu258 opened a new issue #6333:
URL: https://github.com/apache/shardingsphere/issues/6333


   
   How do you hash tables using Sharding-Proxy?


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



[GitHub] [shardingsphere] kimmking commented on issue #6333: The hash table

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


   What do you mean?


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



[GitHub] [shardingsphere] yu258 commented on issue #6333: The hash table

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


   > What do you mean?
   
   What I mean by that is, can a sub-table be partitioned through hashing


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



[GitHub] [shardingsphere] tristaZero closed issue #6333: The hash table

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


   


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



[GitHub] [shardingsphere] yu258 edited a comment on issue #6333: The hash table

Posted by GitBox <gi...@apache.org>.
yu258 edited a comment on issue #6333:
URL: https://github.com/apache/shardingsphere/issues/6333#issuecomment-657909029


   > What do you mean?
   
   What I mean by that is, can a sub-table be partitioned through hashing (我的意思:分表能否通过Hash来进行分表)


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



[GitHub] [shardingsphere] kimmking commented on issue #6333: The hash table

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


   Of course, 
   1. if your sharding key( for example, id) is int type, you can use `id % 16 `
   2. if your sharding key( for example, code) is string type, you can use `Math.abs(code.hashCode()) % 16 `


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



[GitHub] [shardingsphere] tristaZero commented on issue #6333: The hash table

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


   > > What do you mean?
   > 
   > What I mean by that is, can a sub-table be partitioned through hashing (我的意思:分表能否通过Hash来进行分表)
   
   Of course, please look at the official document about  `sharding strategy`.


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