Los FelizOriginal post
Rank 2: Process
I have a function that makes asynchronous calls to different Appwrite collections. This is how I make the call:
JavaScript
await Promise.allSettled([ deleteAllPosts(userId), removeAllAvatars(userId), removeAllReplies(userId), removeAllItems(userId), deleteUserHistory(userId) ]);I asked gpt if I can optimize this process more, and it recommended to use p-limit. Is Appwrite compatible with p-limit?
Summary
Developers asking about `p-limit` compatibility with Appwrite for optimizing asynchronous calls in their code. They are currently using `Promise.allSettled` for multiple Appwrite collection operations.