What are you trying to do?
Basically deleting an array of documents
or creating an array of documents
End users will be doing this (this is a normal function of your app)?
Yes
For now, maybe a delay between each
Long term...couldn't users easily hit the rate limits due to this?
Their use case will work with 120/min
They will max delete 10-20 at a time and same for creating as well
I will try with a delay
FYI, once cloud is upgraded, this problem should go away
Okay, thank you. Fixed now
How'd you add the delay?
Didn't add a "delay" but basically I am making all the calls one by one
Hey, will I be rate-limited if I make around 300 calls from the server at once?
From the server? With an API key?
Yes
Those aren't rate limited
Okay awesome!
Would it be better to create a Appwrite Function for this or a normal NextJS Serverless Function
Appwrite Function. That's what they were created for
Okay, great! Wanted to try it as well
Make sure to follow the docs: https://appwrite.io/docs/functions
Was able to do it successfully. But ran into another problem π¦
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...
- One-time Cloud migration blocked by data...
Hi, Iβm blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...