Execute promises sequentially rather than parallel
Promise.map allows promises to execute in parallel, which can cause deadlocks when cascading truncates. Promise.each executes promises sequentially, which should ensure that we don't have two or more TRUNCATE operations getting in each others' way.
Showing
with
8 additions
and
2 deletions
-
Please register or sign in to post a comment