
I have a function that makes asynchronous calls to different Appwrite collections. This is how I make the call:
TypeScript
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
?
TL;DR
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.Recommended threads
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
