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

[WIP] Simple table level sharding implementation #129

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from

Conversation

auxten
Copy link
Contributor

@auxten auxten commented Dec 3, 2018

  1. Simple SELECT without GROUP, LIMIT offset, HAVING, DISTINCT
  2. Almost all kinds of INSERT without subqueries

@codecov
Copy link

codecov bot commented Dec 6, 2018

Codecov Report

Merging #129 into develop will decrease coverage by 0.95%.
The diff coverage is 69.81%.

@@             Coverage Diff             @@
##           develop     #129      +/-   ##
===========================================
- Coverage    77.47%   76.51%   -0.96%     
===========================================
  Files          142      149       +7     
  Lines        10251    11115     +864     
===========================================
+ Hits          7942     8505     +563     
- Misses        1684     1910     +226     
- Partials       625      700      +75

@codecov
Copy link

codecov bot commented Dec 6, 2018

Codecov Report

Merging #129 into develop will increase coverage by 0.26%.
The diff coverage is 73.29%.

@@            Coverage Diff             @@
##           develop    #129      +/-   ##
==========================================
+ Coverage    76.74%     77%   +0.26%     
==========================================
  Files          146     151       +5     
  Lines        10890   11313     +423     
==========================================
+ Hits          8357    8712     +355     
- Misses        1845    1898      +53     
- Partials       688     703      +15

shard/engine.go Outdated Show resolved Hide resolved
shard/engine.go Outdated Show resolved Hide resolved
So(err, ShouldNotBeNil)
So(its, ShouldEqual, -1)
})
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File is not formatted.

shard/insert.go Outdated Show resolved Hide resolved
shard/insert.go Show resolved Hide resolved
shard/plan.go Show resolved Hide resolved
rowCh <-chan []interface{}
)
for i, ins := range instructions {
colNames, _, rowCh, err = plan.selector(ctx, errCh, stopCh, ins, TempTableRowBufSize)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

colNames may not be the same schema as the original table.

shard/plan.go Outdated Show resolved Hide resolved
@auxten auxten changed the title Simple table level sharding implementation [WIP] Simple table level sharding implementation Jan 3, 2019
@stale
Copy link

stale bot commented Apr 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 29, 2019
@auxten auxten removed the wontfix This will not be worked on label Apr 30, 2019
@stale
Copy link

stale bot commented May 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. Please review @laodouya @auxten @xq262144 @leventeliu

@stale stale bot added the stale label May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants