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/04/29 11:52:57 UTC
[GitHub] [shardingsphere-example] xinghh100-githhub opened a new issue #209: the problem of use HintShardingStrategy in version 4.0.1
xinghh100-githhub opened a new issue #209:
URL: https://github.com/apache/shardingsphere-example/issues/209
When I use HintShardingStrategy in version 4.0.1, I actually return to UnicastRoutingEngine after executing RoutingEngineFactory#newInstance, this problem does not exist in 4.0.0-RC2.
The code usage example is as follows:
// config sharding rule
ShardingRuleConfiguration shardingRuleConfig = new ShardingRuleConfiguration();
shardingRuleConfig.setDefaultDatabaseShardingStrategyConfig(
new HintShardingStrategyConfiguration(new MyShardingAlgorithm())
);
shardingRuleConfig.setDefaultTableShardingStrategyConfig(
new NoneShardingStrategyConfiguration()
);
// use hint
hintManager.setDatabaseShardingValue (db);
----------------------------------------------------------------
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