Skip to content

feature: query shard on multi table and multi db #40

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

Merged
merged 3 commits into from
May 9, 2022

Conversation

dk-lockdown
Copy link
Collaborator

@dk-lockdown dk-lockdown commented May 8, 2022

topology:

db: drug_0, table: drug_resource_0, drug_resource_1, drug_resource_2, drug_resource_3, drug_resource_4
db: drug_1, table: drug_resource_5, drug_resource_6, drug_resource_7, drug_resource_8, drug_resource_9

support query request like:

select id, drug_res_type_id, base_type from drug_resource where id between 200 and 210;

select id, drug_res_type_id, base_type from drug_resource where id between 200 and 210 order by id desc ;

select id, drug_res_type_id, base_type from drug_resource where id between 200 and 210 order by id desc limit 10, 30;

select id, drug_res_type_id, base_type from drug_resource where id between 200 and 210 order by id desc limit 30;

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2022

Codecov Report

Merging #40 (5f2c560) into dev (22d57b1) will decrease coverage by 1.25%.
The diff coverage is 2.63%.

@@            Coverage Diff             @@
##              dev      #40      +/-   ##
==========================================
- Coverage   35.47%   34.22%   -1.26%     
==========================================
  Files          40       42       +2     
  Lines        4769     4947     +178     
==========================================
+ Hits         1692     1693       +1     
- Misses       2908     3085     +177     
  Partials      169      169              
Impacted Files Coverage Δ
pkg/executor/executor.go 0.00% <0.00%> (ø)
pkg/executor/read_write_splitting.go 0.00% <0.00%> (ø)
pkg/executor/sharding.go 0.00% <0.00%> (ø)
pkg/misc/utils.go 0.78% <0.00%> (ø)
pkg/executor/data_source.go 64.10% <83.33%> (+0.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22d57b1...5f2c560. Read the comment docs.

@dk-lockdown dk-lockdown merged commit 91ac5ae into CECTC:dev May 9, 2022
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants