Skip to content
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

模型批量查询能支持分表吗? #18

Closed
dmskys opened this issue Dec 13, 2019 · 1 comment
Closed

模型批量查询能支持分表吗? #18

dmskys opened this issue Dec 13, 2019 · 1 comment

Comments

@dmskys
Copy link

dmskys commented Dec 13, 2019

你好,这种查询能支持分表吗?
rows := make([]*models.TopicInfo, 0)
_ = gosql.Model(&rows).Where("uid=? ", uid).OrderBy("id DESC").Limit(20).All()

@fifsky
Copy link
Member

fifsky commented Dec 16, 2019

这只是一个基础库,分库分表通常不是在应用层完成,一般会采用mysql proxy代理来完成

@fifsky fifsky closed this as completed Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants