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/12/08 06:33:58 UTC
[GitHub] [shardingsphere] StupidManYI opened a new issue, #22744: I wonder if I could manually set the distributed private key
StupidManYI opened a new issue, #22744:
URL: https://github.com/apache/shardingsphere/issues/22744
sometimes, I need to use the entity primary key for other fields. To avoid secondary query,I wonder if I could manually set the distributed private key. (for the Same primary key generation strategy and IdGenerator)
this is my IdGenerator ( implements ShardingKeyGenerator)
<img width="631" alt="image" src="https://user-images.githubusercontent.com/50037510/206374256-7cecc507-6dcf-4905-a2d0-7db90b75ff78.png">
my example
<img width="626" alt="image" src="https://user-images.githubusercontent.com/50037510/206374981-43485bf0-887a-42ce-87df-83342751cfa5.png">
--
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] sandynz commented on issue #22744: I wonder if I could manually set the distributed private key
Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #22744:
URL: https://github.com/apache/shardingsphere/issues/22744#issuecomment-1342152244
Hi @StupidManYI , you could set primary key manually.
--
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] StupidManYI closed issue #22744: I wonder if I could manually set the distributed private key
Posted by GitBox <gi...@apache.org>.
StupidManYI closed issue #22744: I wonder if I could manually set the distributed private key
URL: https://github.com/apache/shardingsphere/issues/22744
--
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] StupidManYI commented on issue #22744: I wonder if I could manually set the distributed private key
Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #22744:
URL: https://github.com/apache/shardingsphere/issues/22744#issuecomment-1342156060
ok,thank you so much @sandynz
--
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] StupidManYI commented on issue #22744: I wonder if I could manually set the distributed private key
Posted by GitBox <gi...@apache.org>.
StupidManYI commented on issue #22744:
URL: https://github.com/apache/shardingsphere/issues/22744#issuecomment-1342165901
succeed in setting primary key manually.
This primary key is manually generated and is not overwritten by automatic generation
<img width="765" alt="image" src="https://user-images.githubusercontent.com/50037510/206378471-624b05ae-0086-431d-8c43-514a7e3af536.png">
--
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