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

[Question] Support transaction or Lock file? #359

ptkdev opened this issue Aug 6, 2019 · 2 comments


Copy link

commented Aug 6, 2019

I can push or update at same time? Or will the json be corrupted?

I need to push a new data/object into json, but it could happen in my code that at the same time there may be someone else who writes one. What happen?

I work at poll-bot on telegram, if users vote simultaneously (async code), I don't want to lose votes or corrupt the database...

@ptkdev ptkdev changed the title [Question] Support transaction? [Question] Support transaction or Lock file? Aug 7, 2019


This comment has been minimized.

Copy link

commented Aug 12, 2019

You could implement your own using: Locks.


This comment has been minimized.

Copy link

commented Aug 12, 2019

@TokenChingy what happen at default? JSON be corrupted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.