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

Atlas支不支持多分表关联查询? #194

Open
jmbkeyes opened this issue Apr 19, 2019 · 0 comments
Open

Atlas支不支持多分表关联查询? #194

jmbkeyes opened this issue Apr 19, 2019 · 0 comments

Comments

@jmbkeyes
Copy link

有两张表A, B, 他们都是大数据表,将他们按各自的分表键分表之后变成了A_0, A_1, B_0, B_1.
select a.name, b.name as n2
from A a
INNER JOIN B b on a.xx= b.yyy
where a.shardingKey=xxx and b.shardingKey=yyy

Atlas貌似最终不会生成分表 的join语句(e.g. select a.name, b.name as n2 from A_0 a inner join B_1 b on a.xx=b.yyy)

@jmbkeyes jmbkeyes changed the title Atlas支不支持多分表查询? Atlas支不支持多分表关联查询? Apr 19, 2019
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

1 participant