-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
分库分表的使用 #330
Comments
你只要实现了 IShardingRoute 接口,把 IShardingRoute 注册进框架,然后就可以像常规使用方式做增删查改了。 |
ps:分片查询目前只支持单表,同时也不支持原生sql查询。 |
能写一个简单的按CreateTime 的Year分表的demo吗? 全部揉在一起,真的很难看懂 |
1 similar comment
能写一个简单的按CreateTime 的Year分表的demo吗? 全部揉在一起,真的很难看懂 |
使用Chloe分库分表功能,需要明白的几点是:
https://github.com/shuxinqin/Chloe/blob/master/src/ChloeDemo/Sharding/OrderShardingRoute.cs 是一个按年分库,月分表的例子,我已经补充了很多详细注释,你可以参考一下,有什么不懂的问就好了,demo我就不帮你写了。 |
可以加qq群讨论,群号 325936847 |
群满员了 |
要不要见个微信群呢 |
|
分片分表查询能不能写个更简单的示例, DEMO里琢磨半天还是不太理解.
特别是路由那一块, 整不明白. 我看有ShardingQuery这个方法, 就是不知道怎么调用的
The text was updated successfully, but these errors were encountered: