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

DynamoDbEnhancedClient support for multiple type mapping #2211

Closed
rossginn opened this issue Dec 18, 2020 · 2 comments
Closed

DynamoDbEnhancedClient support for multiple type mapping #2211

rossginn opened this issue Dec 18, 2020 · 2 comments
Labels
closed-for-staleness dynamodb-enhanced feature-request A feature should be added or improved. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.

Comments

@rossginn
Copy link

Allow inserting into a single table multiple types that implement a generic record interface defining PK and SK.

Describe the Feature

For tables containing many to one relationships, a SK convention such as type#id can be used to link adjacent documents.
For example, if GenericRecord interface defined PK and SK getters:

PK: Amazon SK: company#123abc -> Company implements GenericRecord
Pk: Amazon SK: employee#789xyz -> Employee implements GenericRecord

Ability to create single flexible mapper/client and insert both types in order.

Is your Feature Request related to a problem?

It appears this may be possible with StaticTableSchema, but seems like a lot of unintuitive setup. It appears v1 SDK approach is simpler.

@rossginn rossginn added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 18, 2020
@debora-ito
Copy link
Member

@rossginn is this the same ask as #2151?

@debora-ito debora-ito added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days. dynamodb-enhanced and removed needs-triage This issue or PR still needs to be triaged. labels Apr 10, 2021
@github-actions
Copy link

It looks like this issue hasn’t been active in longer than a week. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.

@github-actions github-actions bot added closing-soon This issue will close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will close in 4 days unless further comments are made. labels Apr 17, 2021
dagnir added a commit that referenced this issue Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness dynamodb-enhanced feature-request A feature should be added or improved. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Projects
None yet
Development

No branches or pull requests

2 participants