If i am making 5 queries to 5 different models, is...
# orm-help
j
If i am making 5 queries to 5 different models, is there any performance difference between resolving them in Promise.all and prisma.$transaction? Since the dataloader should do the same job?
n
Hey Jonas 👋 According to my understanding Promise.all and prisma.$transaction serves different purposes, if one of your promise gets rejected in Promise.all context, the execution just gets stopped and you receive the error in your catch block, the other already resolved promises do not get rolled back while in transaction if one of the query fails then other queries do get rolled back