-
Notifications
You must be signed in to change notification settings - Fork 14
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
Use sharding keys to calculate bucket id #181
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
from
July 6, 2021 16:40
e2331a6
to
173d313
Compare
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
8 times, most recently
from
July 9, 2021 16:07
bf843a1
to
0fc03c7
Compare
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
4 times, most recently
from
July 16, 2021 06:56
11a77fc
to
b791fc5
Compare
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
from
July 16, 2021 07:08
b791fc5
to
e898d0e
Compare
olegrok
reviewed
Jul 16, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patch. See my comments below.
Totktonada
reviewed
Jul 26, 2021
mRrvz
reviewed
Jul 26, 2021
mRrvz
reviewed
Jul 26, 2021
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
from
July 28, 2021 07:08
e898d0e
to
ca5eced
Compare
ligurio
changed the title
Use sharding keys to calculate bucket id (WIP)
Use sharding keys to calculate bucket id
Jul 28, 2021
olegrok
reviewed
Jul 28, 2021
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
2 times, most recently
from
July 30, 2021 07:42
3dccab0
to
0b9e6b7
Compare
rosik
reviewed
Jul 30, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try this, it should make the test compatible with both cartridge 2.5.1 and 2.6.0
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
from
July 30, 2021 18:10
fef89bf
to
9a8dab1
Compare
olegrok
reviewed
Jul 30, 2021
Describe functionality and current limitations (#212, #213, #219, #243) with custom sharding key in CHANGELOG and README. Thanks to Oleg Babin (@olegrok) and Alexander Turenko (@Totktonada) for help with feature implementation. Closes #166 Reviewed-by: Oleg Babin <babinoleg@mail.ru> Reviewed-by: Alexander Turenko <alexander.turenko@tarantool.org> Co-authored-by: Georgy Moiseev <Georgy.moiseev@corp.mail.ru>
ligurio
force-pushed
the
ligurio/gh-166-sharding-keys
branch
from
November 27, 2021 11:28
22b236f
to
0c5776d
Compare
ligurio
added a commit
that referenced
this pull request
Nov 27, 2021
NOTE: Prior to this patch CRUD assumes an index is unique. It was true for the primary key, but it is not guaranteed for a sharding key. Patch adds a tests with select() for non-unique index that failed due to assumption regarding uniq index in crud/select/plan.lua. Seems we can remove this condition and fix tests that relies on total_tuple_count == 1. See also related discussion in [1]. 1. #181 (comment) Part of #166 Reviewed-by: Oleg Babin <babinoleg@mail.ru> Reviewed-by: Alexander Turenko <alexander.turenko@tarantool.org>
DifferentialOrange
added a commit
that referenced
this pull request
Nov 29, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Nov 29, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Nov 30, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Nov 30, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Nov 30, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Nov 30, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Dec 1, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Dec 1, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
DifferentialOrange
added a commit
that referenced
this pull request
Dec 1, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
Totktonada
pushed a commit
that referenced
this pull request
Dec 1, 2021
PR #181 introduced support of DDL sharding keys. But if sharding key hasn't got a separate index in schema, select with equal conditions for all required sharding key fields still led to map-reduce instead of a single storage call. This patch introduces impoved support of sharding keys extraction and fixes the issue. Closes #213
AnaNek
added a commit
that referenced
this pull request
Jan 12, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 27, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 28, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 28, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 31, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 31, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. In this commit content of `sharding_key.lua` file is coppied to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Jan 31, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Feb 1, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Feb 1, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Feb 1, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Feb 7, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
AnaNek
added a commit
that referenced
this pull request
Feb 21, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
Totktonada
pushed a commit
that referenced
this pull request
Feb 21, 2022
…` file PR #181 introduced support of DDL sharding keys. Implementation of sharding keys support contains methods that are common to support sharding keys and sharding functions. That's why a separate file `sharding_metadata.lua` was created to contain common methods. This commit relocates functions for fetching sharding key from `sharding_key.lua` file to `sharding_metadata.lua` file to simplify a reviewer's life and display the history of changes relative to PR #181 in the following commits. Part of #237
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What has been done? Why? What problem is being solved?
I didn't forget about
Closes #166