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.
Table of contents
The ProblemWhy the SlownessUsing Promise to Speed UpBe Careful — Promise.all() Is All or NothingThanks for Reading!3 Comments
Sort: