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

Feature: Support a transactional operation from multiple tables at once #443

Open
AaronFinn95 opened this issue Jan 30, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@AaronFinn95
Copy link

AaronFinn95 commented Jan 30, 2023

Currently the highest level we can do transactions in onetable is on a table: await table.transact('write', transaction);

However, DynamoDB supports a transaction operation that can write/get from multiple tables at once:

TransactItems
An ordered array of up to 100 TransactWriteItem objects, each of which contains a ConditionCheck, Put, Update, or Delete object. These can operate on items in different tables, but the tables must reside in the same AWS account and Region, and no two of them can operate on the same item.

Can this be supported in dynamodb-onetable?

For a bit of context:
I'm currently following single table design principles, however for infrastructure reasons I have multiple tables. Hopefully others have the same issue. The API is great as is, however this would be a massive plus.

@AaronFinn95 AaronFinn95 changed the title Feature: Support transactional operations from multiple tables at once Feature: Support a transactional operation from multiple tables at once Jan 30, 2023
@mobsense mobsense added the enhancement New feature or request label Feb 15, 2023
@mobsense
Copy link
Contributor

Good idea.

Currently, this is not (yet) supported.

I've flagged this as an open issue feature enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants