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:
[email protected]