wgy8283335 commented on a change in pull request #153: Update 'route.en.md' URL: https://github.com/apache/incubator-shardingsphere-doc/pull/153#discussion_r277187127
########## File path: document/current/content/features/sharding/principle/route.en.md ########## @@ -19,12 +19,36 @@ In the roadmap of ShardingSphere, elastic migration will start from 4.x version. It is used in the situation to route according to the sharding key, and can be sub-divided into 3 types, direct route, standard route and Cartesian product route. +### Direct Route The conditions for direct route are relatively strict. It requires to shard through Hint (use HintAPI to appoint the route to databases and tables directly). On the premise of having database sharding but not table sharding, SQL parsing and the following result merging can be avoided. Therefore, with the highest compatibility, it can execute any SQL in complex situations including sub-queries, self-defined functions. -Direct route can also be used in the situation where sharding keys are not in SQL. +Direct route can also be used in the situation where sharding keys are not in SQL.For example, set sharding key to '3'. Review comment: THX. I've modified the document. ---------------------------------------------------------------- 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] With regards, Apache Git Services
