提交 ebb8a523 编写于 作者: K kimmking

revise faq

上级 b083cfc3
......@@ -92,7 +92,7 @@ SELECT SUM(num) AS sum_num, SUM(num2) AS sum_num2 FROM tablexxx;
原因如下:
com.dangdang.ddframe.rdb.sharding.merger.orderby.OrderByValue#getOrderValues()方法如下:
`org.apache.shardingsphere.sharding.merge.dql.orderby.OrderByValue#getOrderValues()`方法如下:
```java
private List<Comparable<?>> getOrderValues() throws SQLException {
......@@ -233,7 +233,7 @@ ShardingSphere中很多功能实现类的加载方式是通过[SPI](https://shar
回答:
1. 升级到`4.0.1`以上的版本,以提高`default dataSource`的table metadata的加载速度。
2. 参照你采用的连接池,将配置项`max.connections.size.per.query`(默认值为1)调高(版本 >= 3.0.0.M3)。
2. 参照你采用的连接池,将配置项`max-connections-size-per-query`(默认值为1)调高(版本 >= 3.0.0.M3)。
## 19. 如何在inline分表策略时,允许执行范围查询操作(BETWEEN AND、\>、\<、\>=、\<=)?
......
......@@ -89,13 +89,13 @@ There are two solutions for the above problem: 1. Configure JVM parameter “-or
Reasons:
com.dangdang.ddframe.rdb.sharding.merger.orderby.OrderByValue#getOrderValues():
`org.apache.shardingsphere.sharding.merge.dql.orderby.OrderByValue#getOrderValues()`:
```java
private List<Comparable<?>> getOrderValues() throws SQLException {
List<Comparable<?>> result = new ArrayList<>(orderByItems.size());
for (OrderItem each : orderByItems) {
Object value = resultSet.getObject(each.getIndex());
for (OrderByItem each : orderByItems) {
Object value = queryResult.getValue(each.getIndex(), Object.class);
Preconditions.checkState(null == value || value instanceof Comparable, "Order by value must implements Comparable");
result.add((Comparable<?>) value);
}
......@@ -230,7 +230,7 @@ The solutions are as follows:
Answer:
1. Update to 4.0.1 above, which helps speed up the process of loading table metadata from `the default dataSource`.
2. Configure `max.connections.size.per.query`(Default value is 1) higher referring to connection pool you adopt(Version >= 3.0.0.M3).
2. Configure `max-connections-size-per-query`(Default value is 1) higher referring to connection pool you adopt(Version >= 3.0.0.M3).
## 19. How to allow range query with using inline sharding strategy(BETWEEN AND, \>, \<, \>=, \<=)?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册