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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...