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

Update init.sql #580

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions examples/init.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ADD SHARDING RULE r1 COLUMNS w_id;
ADD SHARDING RULE r2 COLUMNS id;
ADD SHARDING RULE r3 COLUMNS bid;
ADD KEY RANGE krid3 FROM 21 ROUTE TO sh2;
ADD KEY RANGE krid2 FROM 11 ROUTE TO sh1;
ADD KEY RANGE krid1 FROM 1 ROUTE TO sh1;
CREATE DISTRIBUTION ds1 COLUMN TYPES integer;

CREATE KEY RANGE krid3 FROM 21 ROUTE TO sh2 FOR DISTRIBUTION ds1;
CREATE KEY RANGE krid2 FROM 11 ROUTE TO sh1 FOR DISTRIBUTION ds1;
CREATE KEY RANGE krid1 FROM 1 ROUTE TO sh1 FOR DISTRIBUTION ds1;
Loading