You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "hf185 (via GitHub)" <gi...@apache.org> on 2024/08/14 03:25:21 UTC
[I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
hf185 opened a new issue, #32500:
URL: https://github.com/apache/shardingsphere/issues/32500
Sharding proxy: 5.2.1
CustomShardingAlgorithm implements ComplexKeysShardingAlgorithm
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "hf185 (via GitHub)" <gi...@apache.org>.
hf185 commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2461188763
@perzpy 你好,请问你解决这个问题了吗?
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "hf185 (via GitHub)" <gi...@apache.org>.
hf185 commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2300137038
> > Sharding proxy: 5.2.1
> > CustomShardingAlgorithm implements ComplexKeysShardingAlgorithm
>
> @hf185 hi, do you find any way to get ?
Haven't found any good solutions
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2297989746
The interface method of ShardingAlgorithm does not include Statement, so the Statement type cannot be determined in CustomShardingAlgorithm.
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2288474076
Is it ShardingSphere's feature?
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "perzpy (via GitHub)" <gi...@apache.org>.
perzpy commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2300305967
@hf185
我打算借用HintManager中的ThreadLocal来实现,插入时把其中某个值(比如setWriteRouteOnly设为true),然后在doSharding时判断这个值来判断是插入还是查询
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "perzpy (via GitHub)" <gi...@apache.org>.
perzpy commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2300128206
> Sharding proxy: 5.2.1
>
> CustomShardingAlgorithm implements ComplexKeysShardingAlgorithm
hi, do you find any way to get ?
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "hf185 (via GitHub)" <gi...@apache.org>.
hf185 commented on issue #32500:
URL: https://github.com/apache/shardingsphere/issues/32500#issuecomment-2304053010
> @hf185 我打算借用HintManager中的ThreadLocal来实现,插入时把其中某个值(比如setWriteRouteOnly设为true),然后在doSharding时根据这个值来判断是插入还是查询
可以交流一下
--
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
Re: [I] Is there any way to get whether the executed statement is insert or select in a custom algorithm? [shardingsphere]
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #32500: Is there any way to get whether the executed statement is insert or select in a custom algorithm?
URL: https://github.com/apache/shardingsphere/issues/32500
--
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