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

Auto-cancel the moment a doc changes #1

Open
jhs opened this issue Mar 17, 2012 · 0 comments
Open

Auto-cancel the moment a doc changes #1

jhs opened this issue Mar 17, 2012 · 0 comments

Comments

@jhs
Copy link
Contributor

jhs commented Mar 17, 2012

If you start a long-running transaction and follow up with a short-running one, the shorter will finish first. When the long-runner finally finishes, it will get an inevitable 409 and begin the (slow) process again.

It would be nice to at least immediately detect when a transaction is doomed, and immediately jump to abort or retry code.

Maybe Txn can follow a _changes feed filtered on the _id of the document in question. And if it sees an update, it can immediately abort/retry.

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

1 participant