Skip to content

Support for Optimistic Concurrency? #259

Answered by whimzyLive
refactorthis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @refactorthis,

Typedorm doesn't have any native features to support optimistic concurrency as it is offloading most of these operational responsibilities to DynamoDB itself.

The way you are currently handling the optimistic concurrency (via conditional write) will also work with TypeDORM.

You can provide the condition in the options.where property and TypeDORM will generate the appropriate condition expression for you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by whimzyLive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants