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

Sharding some tables, but don't sharding some other tables #3078

Closed
xiangkaiy opened this issue Sep 21, 2019 · 4 comments
Closed

Sharding some tables, but don't sharding some other tables #3078

xiangkaiy opened this issue Sep 21, 2019 · 4 comments

Comments

@xiangkaiy
Copy link

xiangkaiy commented Sep 21, 2019

Feature Request

All the example show how to do sharding tables to one db, or to several db,
In some case, I need sharding some tables, but for some other tables, I don't need to sharding.
How do I configure in this case?

@dongzl
Copy link
Contributor

dongzl commented Sep 21, 2019

Hi @xiangkaiy , I think you can describe your problem in more detail to help you solve it.

I understand only config the sharding tables in xml file, the other table don't need any configuration, use it directly.

@terrymanu
Copy link
Member

Can you change the title more meaningful for search friendly?

@betterjava
Copy link
Member

betterjava commented Sep 25, 2019

@xiangkaiy see my config for sharding-proxy below:
image

  • user_shard: you can config a shard table like it.
  • user_no_shard: you can config a no shard table like it.
  • defaultDataSourceName: table have not been configed will use defaultDataSourceName.

@terrymanu
Copy link
Member

Closed until change title to more meaningful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants