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

How to uniformly configure the database sharding strategy for all tables in the entire database #32631

Closed
daaao opened this issue Aug 22, 2024 · 2 comments

Comments

@daaao
Copy link

daaao commented Aug 22, 2024

Hello, my requirement is that all tables in the database (there are probably thousands of tables) need to be configured with the same sharding strategy, and this sharding strategy will not be modified, so I don't want to configure each table in the configuration file, which is very troublesome. How should I configure it?

Or is there a wildcard configuration method in logic-table, which means that all tables use the same database and table sharding strategy?

Or is there an SPI that can support expansion to achieve this requirement?

This means that there are hundreds of tables in a database, and more will be added later. I don’t want to configure the same rule for each table.

@terrymanu
Copy link
Member

You may use DistSQL to config your rules, it can be generated by codes.

Copy link

github-actions bot commented Sep 5, 2024

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

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

2 participants