kingshard icon indicating copy to clipboard operation
kingshard copied to clipboard

A high-performance MySQL proxy

Results 107 kingshard issues
Sort by recently updated
recently updated
newest added

历史版本: Git commit:2017-12-30 07:26:59 +0800 @f03442c Build time:2018-02-23 10:26:41 +0000 by go version go1.8.3 linux/amd64 新版本: Git commit:53ab18c Build time:2019-02-27 10:52:39 go version go1.12 linux/amd64 情况如下: -新版本kingshard与mysql在同一台机器上时 写入会异常慢或者卡死(用的replace),查询正常 -相同的配置在另外的机器上写入没有问题 -旧版本kingshard与mysql在同一台机器上时...

问题:accounts_logs表以create_time为分表键按月分表,跨月查询结果没有正常排序: 查询语句: select FROM_UNIXTIME(a.create_time) as ct from accounts_logs a where a.account_uuid = 'ipuvnppbbqa' order by a.create_time desc limit 1, 5 ; 查询结果没有按create_time 倒序排,同一个月份的结果有排序,跨月分后合并没有排序 2017-03-31 10:57:38 2017-04-20 17:21:32 2017-04-07 11:02:26 2017-04-07...

If the first byte of a packet is a length-encoded integer and its byte value is 0xfe, you must check the length of the packet to verify that it has...

Kingshard 目前支持枚举类型的分表分库吗? 怎么实现的? ------------------------------------------------------- 在用kingshard做分库分表功能过程中,数据表中有一个 year字段,字段类型int或year。 做如下设置的时候, type: date_year nodes: [node1,node2] date_range: [2015-2016,2017-2018] insert into table(`year`) values ('2014'); 字段值必须设置为字符型,才能有效找到正确的分库分表。 请问能否支持这种场景,而不依赖MySQL的隐式转换? 实现源码如下, https://github.com/flike/kingshard/blob/master/proxy/router/shard.go //the format of date is: YYYY-MM-DD HH:MM:SS,YYYY-MM-DD or...

``` func TestSelect(t *testing.T) { router := &Router{ Rules: make(map[string]map[string]*Rule), Nodes:[]string{"node-0", "node-1", "node-2", "node-3"}, } router.Rules["db0"] = make(map[string]*Rule) rule := &Rule{ DB: "db0", Table: "tb_test", Key: "id", Type: HashRuleType, Nodes:...

很多用户在尝试使用kingshard的时候经常询问:「目前线上使用kingshard的用户有哪些?」。以下是作者收集到的目前在线上使用kingshard的用户,如果您的公司也正在使用kingshard,欢迎更新此列表,为kingshard的发展做一份贡献。:)

supported

![default](https://user-images.githubusercontent.com/836360/50811053-a8f8e380-1347-11e9-9e75-0ead81b2b502.png) ![default](https://user-images.githubusercontent.com/836360/50811031-92eb2300-1347-11e9-8bb2-89d5d77e10ca.png)

有计划支出表级别的熔断和降级吗,有的话?能告诉一下具体的计划吗?我这边可以一起开发