Skip to content

Multiple Parallel Transactions with AsyncLocalStorage #14895

Answered by vkarpov15
Mr0nline asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is more of a MongoDB server question, but if the first transaction fails then the 2nd transaction shouldn't get rolled back unless it conflicts with another transaction. Mongoose's transaction() function starts a new session every time. Does that help?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vkarpov15
Comment options

Answer selected by Mr0nline
@Mr0nline
Comment options

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