Using Promise.all inside transactions #893
Unanswered
lucaspiresfernandes
asked this question in
Q&A
Replies: 1 comment
-
@lucaspiresfernandes Hey there! I'm curious, how did it work out for you? I think the issue with your code is that when something goes wrong with one of your promises, it won't roll back properly because it won't throw an error here. You should rewrite this to use Promise.allSettled and rethrow the error. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I often use Promise.all inside batch select queries. Is it possible to do the same using write transactions? Like this:
Is there any problem by doing this? Does it run on parallel? Is it faster?
Beta Was this translation helpful? Give feedback.
All reactions