![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库中间件(Mycat)
文章平均质量分 86
wyr2018
这个作者很懒,什么都没留下…
展开
-
MyCat 分片算法 PartitionByMonthAndHistory
rule.xml 配置如下<function name="partition-by-month-history" class="io.mycat.route.function.PartitionByMonthAndHistory"> <property name="dateFormat">yyyy-MM-dd</property> <prop原创 2019-03-14 17:24:48 · 998 阅读 · 1 评论 -
Mycat 分片算法 PartitionByDate 两点疑问
最近学习mycat,关于PartitionByDate有两点疑问,在此记录一下,理解有误的地方还望各位大神指正!io.mycat.route.function.PartitionByDate,根据时间字端,按天分片<function name="partition-by-date" class="io.mycat.route.function.PartitionByDate">...原创 2019-03-07 16:24:11 · 1244 阅读 · 0 评论 -
Mycat 分片算法 AutoPartitionByLong
关于分片算法 AutoPartitionByLong,rule.xml 的配置为:<function name="rang-long" class="io.mycat.route.function.AutoPartitionByLong"> <property name="mapFile">autopartition-long.txt</property...原创 2019-03-07 17:36:32 · 1125 阅读 · 0 评论 -
Mycat 分片算法 LatestMonthPartion
关于分片算法 LatestMonthPartion,rule.xml 的配置为:<function name="latestMonth" class="io.mycat.route.function.LatestMonthPartion"> <property name="splitOneDay">24</property></func原创 2019-03-07 23:10:09 · 471 阅读 · 0 评论 -
Mycat 分片算法 PartitionByMod | PartitionByHashMod
分片算法PartitionByMod 和PartitionByHashMod 类似,只是在支持的字端类型上有稍微区别,放在一起说明:<function name="part-by-mod" class="io.mycat.route.function.PartitionByMod"> <property name="count">3</propert...原创 2019-03-11 23:03:50 · 2720 阅读 · 0 评论 -
Mycat 分片算法 PartitionByHotDate
该算法根据时间分片,热数据存储在索引为 0 的dataNode中,其余数据根据sPartionDay进行分片存储,用户可配置属性 dataFormat、 sLastDay、 sPartionDay。dataFormat: 时间解析格式; sLastDay:热数据范围,如该值配置为10,则表示从现在往前推10天的数据为热点数据。将存储在第一个dataNode中,需要 注意的是如果插入数据晚...原创 2019-03-12 15:57:37 · 636 阅读 · 1 评论