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

Support for optimistic locking #3

Open
fishcharlie opened this issue Dec 1, 2018 · 7 comments
Open

Support for optimistic locking #3

fishcharlie opened this issue Dec 1, 2018 · 7 comments

Comments

@fishcharlie
Copy link
Member

dynamoose/dynamoose#16

@dolsem
Copy link

dolsem commented Mar 27, 2019

I was terribly busy in the last few months, so couldn't contribute to this library. I will definitely get this done in the next several weeks.

@dolsem
Copy link

dolsem commented Aug 5, 2019

The plugin is fully functional, located at https://github.com/dolsem/dynamoose-plugin-optimistic-locking. However, it relies on my fork of Dynamoose while #645 is not merged.

@rodrigogs
Copy link

@dolsem I'm sorry but... how to use it with v2?

MyModel.plugin is not a function

@dolsem
Copy link

dolsem commented Nov 23, 2020

@rodrigogs I don't think v2 has plugin support. Hopefully v3 will.

@rodrigogs
Copy link

Oh, I see. Well... it's very disappointing since v1 had it.

I'm stuck in v1(which has some ugly bugs) and v2 looks like a downgrade :/

@dolsem
Copy link

dolsem commented Nov 23, 2020

@rodrigogs what bugs are you concerned about specifically? I find v1 to be pretty stable overall. Admittedly, some bugs are present, but I havent seen anything critical for my use case personally.

@rodrigogs
Copy link

You cant use Model.update for instance, because it doesn't work, I have to retrieve the doc and execute doc.save().

I know, It has an easy workaround, that's why I called it an ugly bug :P

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

No branches or pull requests

3 participants