FingersKey opened a new issue #2351: 使用3.1.0版本的,standard分表策略插入会插入多条 URL: https://github.com/apache/incubator-shardingsphere/issues/2351 ``` sharding.jdbc.config.sharding.tables.t_order.actual-data-nodes=ds0.t_order_$->{0..1} sharding.jdbc.config.sharding.tables.t_order.table-strategy.standard.range-algorithm-class-name=com.example.demo.strategy.RangeAlgorithm sharding.jdbc.config.sharding.tables.t_order.table-strategy.standard.precise-algorithm-class-name=com.example.demo.strategy.PreciseAlgorithm sharding.jdbc.config.sharding.tables.t_order.table-strategy.standard.sharding-column=createTime sharding.jdbc.config.sharding.tables.t_order.key-generator-column-name=id sharding.jdbc.config.sharding.tables.t_order.key-generator-class-name=io.shardingsphere.core.keygen.DefaultKeyGenerator spring.jpa.show-sql=true sharding.jdbc.config.props.sql.show=true ``` 上面是我的配置,当我对Order插入的时候会发出2条SQL 同时插入 ``` ShardingSphere-SQL : Actual SQL: ds0 ::: insert into t_order_0 (create_time, id) values (?, ?) ::: [[2019-05-08 17:21:20.891, 332934125524615169]] ShardingSphere-SQL : Actual SQL: ds0 ::: insert into t_order_1 (create_time, id) values (?, ?) ::: [[2019-05-08 17:21:20.891, 332934125524615169]] ``` 这是为什么啊?
---------------------------------------------------------------- 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
