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

mycat2中ER分片和1.6的区别疑问 #821

Open
zhaojiangc opened this issue Apr 19, 2024 · 0 comments
Open

mycat2中ER分片和1.6的区别疑问 #821

zhaojiangc opened this issue Apr 19, 2024 · 0 comments

Comments

@zhaojiangc
Copy link

请问下mycat2中ER 分片时,是不是必须要把主从表都进行分片配置,并且分片算法要一样?而不是像1.6中 只要配置主表分片,并通过childTable 描述ER主从关系后,从表就可以跟着主表分片?如果上面答案是肯定的,这样的话myact2 有一种主从ER配不出来。就是主表有分片字段,而从表没有分片字段。举例就是主表中有一个年字段进行分片,而从表没有年份字段。因为从表如果加了年份字段,在跨年时,应用就需要额外处理。所有想问下1.6这样的ER配置,2.0中是否考虑加进去?

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