-
Notifications
You must be signed in to change notification settings - Fork 37
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
Remove prefix from indexes of DynamoDB #161
Conversation
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.
Looking good! Thank you!
Left minor naming suggestion.
* @return an {@code Optional} with the returned the full table name | ||
*/ | ||
@Nonnull | ||
public Optional<String> forFullTableNameWithoutPrefix() { |
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.
public Optional<String> forFullTableNameWithoutPrefix() { | |
public Optional<String> forUnprefixedFullTableName() { |
This sounds a bit better to me.
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! Fixed.
} | ||
|
||
/** | ||
* Returns the full table name without the prefix with the namespace for this operation |
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.
* Returns the full table name without the prefix with the namespace for this operation | |
* Returns the full table name without the unprefixed namespace for this operation |
@yito88 So an index name is a table-local name? I mean, there is no conflict with the same index names between the original table and the restored table? |
@brfrn169 Good question! An index table is bound to the table. There is no conflict with that of the source table. |
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.
@yito88 Thank you! LGTM!
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.
LGTM! Thank you!
https://scalar-labs.atlassian.net/browse/DLT-8207
For DyanmoDB recovery, the prefix for index tables is removed.
Scalar DB requires the same name about index tables after restoring the table. However, the name of the restored tables should be different from that of the source table to restore data. This requirement can be satisfied by adding the prefix. Also, the name of an index table couldn't be modified after restoring the table on DyanmoDB.
That's why I don't want to add a prefix to the index.