Does Promise.all work correct in transactions?

As I just found out, pg only works with one query (or more if there is more than one connection), so it makes no sense to use Promise.all or Promise.allSettled, because in any case requests to the database will be executed one by one?
2 Replies
Angelelz
Angelelz13mo ago
Relevant thread https://discord.com/channels/1043890932593987624/1177409434000031775 I'll look into this further when I have some time
karma
karmaOP13mo ago
that would be nice, thank you So far, my tests show that the queries are running one after the other.
Want results from more Discord servers?
Add your server