Changing Async/Await to Promises.all to Speed Up API Calls in Node.JS
Node.JS has a bulk edit feature where the user can multi-select a few records and edit all of them at the same time. Updating one record makes an API call that takes 500ms to 1s. Since it iterates over the records and updates them one by one, the time goes up linearly as there are more records to be updated.