Admin
What are you trying to do?
Votes
1
Replies
24
Participants
Unknown
Messages
25
Admin
What are you trying to do?
Rank 2: Process
Basically deleting an array of documents
Rank 2: Process
or creating an array of documents
Admin
End users will be doing this (this is a normal function of your app)?
Rank 2: Process
Rank 2: Process
Yes
Admin
For now, maybe a delay between each
Admin
Long term...couldn't users easily hit the rate limits due to this?
Rank 2: Process
Their use case will work with 120/min
Rank 2: Process
They will max delete 10-20 at a time and same for creating as well
Rank 2: Process
I will try with a delay
Admin
FYI, once cloud is upgraded, this problem should go away
Rank 2: Process
Okay, thank you. Fixed now
Admin
How'd you add the delay?
Rank 2: Process
Didn't add a "delay" but basically I am making all the calls one by one
Rank 2: Process
Hey, will I be rate-limited if I make around 300 calls from the server at once?
Admin
From the server? With an API key?
Rank 2: Process
Yes
Admin
Those aren't rate limited
Rank 2: Process
Okay awesome!
Rank 2: Process
Would it be better to create a Appwrite Function for this or a normal NextJS Serverless Function
Admin
Appwrite Function. That's what they were created for
Rank 2: Process
Okay, great! Wanted to try it as well
Admin
Make sure to follow the docs: https://appwrite.io/docs/functions
Rank 2: Process
Was able to do it successfully. But ran into another problem 😦