mirror of
https://github.com/actiontech/dble.git
synced 2026-05-02 04:20:11 -05:00
release note
This commit is contained in:
+6
-1
@@ -111,4 +111,9 @@ hs_err_pid*
|
||||
/RUNNING_PID
|
||||
.DS_Store
|
||||
/target/
|
||||
/tmlogs/
|
||||
/tmlogs/
|
||||
src/main/resources/server.xml
|
||||
src/main/resources/schema.xml
|
||||
src/main/resources/rule.xml
|
||||
conf/dnindex.properties
|
||||
version.txt
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
date:2016/11/28
|
||||
VERSION 0.1.1
|
||||
CONTENT:
|
||||
### 1.拆分算法
|
||||
|
||||
保留
|
||||
- 枚举方式分区
|
||||
- 数字范围方式分区
|
||||
- 固定Hash 分区
|
||||
- 固定Hash 分区(string 类型)
|
||||
- 按日期分区
|
||||
|
||||
以上修改部分
|
||||
固定Hash 分区:
|
||||
sum((count[i]*length[i])) 不受乘积为1024的限制,改为不大于1024的都可以支持
|
||||
按日期分区:
|
||||
可以设置default node
|
||||
|
||||
其余配置见rule_template.xml
|
||||
|
||||
###2.支持insert 不带columns
|
||||
@@ -32,7 +32,7 @@ public abstract class Versions {
|
||||
public static final byte PROTOCOL_VERSION = 10;
|
||||
|
||||
/**服务器版本**/
|
||||
public static byte[] SERVER_VERSION = "5.6.29-mycat-0.1.1-DEV-20161128111259".getBytes();
|
||||
public static byte[] SERVER_VERSION = "5.6.29-mycat-0.1.1-DEV-20161128153138".getBytes();
|
||||
|
||||
public static void setServerVersion(String version) {
|
||||
byte[] mysqlVersionPart = version.getBytes();
|
||||
|
||||
@@ -9,76 +9,52 @@
|
||||
under the License. -->
|
||||
<!DOCTYPE mycat:rule SYSTEM "rule.dtd">
|
||||
<mycat:rule xmlns:mycat="http://io.mycat/">
|
||||
<tableRule name="rule1">
|
||||
<tableRule name="sharding-by-enum">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>func1</algorithm>
|
||||
<algorithm>enum</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="sharding-by-range">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>rangeLong</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="sharding-by-hash">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>hashLong</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="rule2">
|
||||
<tableRule name="sharding-by-mod">
|
||||
<rule>
|
||||
<columns>user_id</columns>
|
||||
<algorithm>func1</algorithm>
|
||||
<columns>id</columns>
|
||||
<algorithm>hashmod</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="sharding-by-hash-str">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>hashSting</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="sharding-by-intfile">
|
||||
<rule>
|
||||
<columns>sharding_id</columns>
|
||||
<algorithm>hash-int</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="auto-sharding-long">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>rang-long</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="mod-long">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>mod-long</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="sharding-by-murmur">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>murmur</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="crc32slot">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>crc32slot</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="sharding-by-month">
|
||||
<rule>
|
||||
<columns>create_time</columns>
|
||||
<algorithm>partbymonth</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
<tableRule name="latest-month-calldate">
|
||||
|
||||
|
||||
<tableRule name="sharding-by-date">
|
||||
<rule>
|
||||
<columns>calldate</columns>
|
||||
<algorithm>latestMonth</algorithm>
|
||||
<algorithm>partbydate</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="auto-sharding-rang-mod">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>rang-mod</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
<tableRule name="jch">
|
||||
<rule>
|
||||
<columns>id</columns>
|
||||
<algorithm>jump-consistent-hash</algorithm>
|
||||
</rule>
|
||||
</tableRule>
|
||||
|
||||
|
||||
|
||||
<!-- 枚举方式分区 -->
|
||||
@@ -90,23 +66,29 @@
|
||||
</function>
|
||||
|
||||
<!-- 数字范围方式分区 -->
|
||||
<function name="rang-long"
|
||||
<function name="rangeLong"
|
||||
class="io.mycat.route.function.AutoPartitionByLong">
|
||||
<property name="mapFile">autopartition-long.txt</property>
|
||||
<property name="defaultNode">0</property><!--默认为-1,数据范围超出则报错-->
|
||||
</function>
|
||||
|
||||
<!-- 固定Hash 分区,当partitionLength全为1时,退化为求模分区-->
|
||||
<!--MAX(sum(count*length[i]) must be less then 1024-->
|
||||
<function name="func1" class="io.mycat.route.function.PartitionByLong">
|
||||
<!--MAX(sum(count*length[i]) must not more then 1024-->
|
||||
<function name="hashLong" class="io.mycat.route.function.PartitionByLong">
|
||||
<property name="partitionCount">8</property>
|
||||
<property name="partitionLength">128</property>
|
||||
<!-- <property name="partitionCount">2,3</property>
|
||||
<property name="partitionLength">4,5</property>-->
|
||||
</function>
|
||||
|
||||
<!-- 对8求模-->
|
||||
<function name="hashmod" class="io.mycat.route.function.PartitionByLong">
|
||||
<property name="partitionCount">8</property>
|
||||
<property name="partitionLength">1</property>
|
||||
</function>
|
||||
|
||||
<!-- 固定Hash 分区 ,string 类型-->
|
||||
<function name="func1" class="io.mycat.route.function.PartitionByString">
|
||||
<function name="hashSting" class="io.mycat.route.function.PartitionByString">
|
||||
<property name="partitionCount">8</property>
|
||||
<property name="partitionLength">128</property>
|
||||
<property name="hashSlice">0:2</property>
|
||||
@@ -120,7 +102,7 @@
|
||||
<property name="sBeginDate">2015-01-01</property>
|
||||
<property name="sEndDate">2015-01-31</property>
|
||||
<property name="sPartionDay">10</property>
|
||||
<property name="defaultNode">0</property><!--默认为-1 ,小于sBeginDate日期直接报错 -->
|
||||
<property name="defaultNode">0</property><!--默认为-1 ,若为-1 时,小于sBeginDate日期直接报错 -->
|
||||
</function>
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
BuildTime 2016-08-06 13:04:00
|
||||
GitVersion null
|
||||
MavenVersion 1.6-ALPHA
|
||||
BuildTime 2016-11-28 07:31:35
|
||||
GitVersion 76f17e4b028fda6cd784a45e87c8d7dd331d381a
|
||||
MavenVersion 0.1.1-DEV
|
||||
GitUrl https://github.com/MyCATApache/Mycat-Server.git
|
||||
MyCatSite http://www.mycat.org.cn
|
||||
QQGroup 106088787
|
||||
|
||||
Reference in New Issue
Block a user