awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Apache License 2.0
9.59k stars 5.63k forks source link

Upsert best practice #557

Closed kurtmaile closed 5 years ago

kurtmaile commented 5 years ago

Hi,

Is there a best practice example of doing a transactional upsert? Is this a get followed by a put or update depending? Done within a (new) DDB trans?

Thanks!

Doug-AWS commented 5 years ago

Do you have any particular DB in mind? Programming language? For DBs, we have:

For languages we have:

kurtmaile commented 5 years ago

I’m so sorry - I thought I was in the AWS go sdk! And I should not have abbreviated DDB- our target is dynamodb for an upset using go.

Thanks

Doug-AWS commented 5 years ago

No problem. I'm the Go guy, so I'll be adding you to my to-do list.

Doug-AWS commented 5 years ago

I'm currently rewriting all of the Go examples for DynamoDB. Stay tuned.

Doug-AWS commented 5 years ago

It looks like DynamoDB added support for transactions back in November: https://aws.amazon.com/blogs/aws/new-amazon-dynamodb-transactions/. I'll see if I can't add a Go example by EOW. I'll post a link to the new example here when I'm done.

Doug-AWS commented 5 years ago

Moving to backlog for now.

ghost commented 5 years ago

Closing this issue, now that it's on the backlog for consideration at some point in the future.