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/06/23 01:35:33 UTC

[GitHub] [shardingsphere] natehuangting opened a new issue, #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?

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

   ## Question
   
   Why does proxy use hint to force routing to make multiplexing into one request and one thread?


-- 
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] natehuangting commented on issue #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?

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

   @strongduanmu Sorry, I misunderstood. I read the source code, using hintManager requires a connection and a thread, and using hint through comments is not required, is that what I understand?
   


-- 
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 #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?

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

   Besides, you can try SQL HINT for some scenario——https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/special-api/sharding/hint/#%E4%BD%BF%E7%94%A8-hint-%E5%88%86%E7%89%87.


-- 
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] natehuangting closed issue #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?

Posted by GitBox <gi...@apache.org>.
natehuangting closed issue #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?
URL: https://github.com/apache/shardingsphere/issues/18521


-- 
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 #18521: Why does proxy use hint to force routing to make multiplexing into one request and one thread?

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

   Because the Hint feature uses ThreadLocal, it is necessary to ensure that threads in the same connection are reused. For more detailed info, you can refer https://github.com/apache/shardingsphere/blob/eac19a2d497da4ab6074fb101099b151a1cdc7f1/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/hint/HintManager.java.


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