Rank 1: Thread
yes cloud functions, how to fix
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
yes cloud functions, how to fix
don't send that much data
Rank 1: Thread
Suppose I have a database to work with and I need to process thois econtacts via functions. Any idea?
Rank 1: Thread
*contacts
if you need to send something that large, it should be a file and not trying to upload a gigantic JSON body.
however, a better approach would be to break it down and process it chunk by chunk
Rank 1: Thread
ok I ma getting this error while sending 3k objects
Rank 1: Thread
Thanks I will try that
how big is the actual JSON payload?
Rank 1: Thread
vary based on filter in custom databse
Rank 1: Thread
can be from 3k -20k
Are you saying that many objects or that many bytes?
Rank 1: Thread
We will be sending some sms with appwrite functions
Rank 1: Thread
objects
Rank 1: Thread
one customer 1 obj
I'm asking for bytes
Rank 1: Thread
That has to be checked
Rank 1: Thread
whats the limit?
honestly i don't even know what's returning that 413
regardless, you really should be sending less data and doing less work
it's best to have functions finish as quick as possible
the longer you have functions running, the more likely something wrong can happen
Rank 1: Thread
ok suppose I have a list of 10k users can I fetch those directly in functions and in loop process?
Rank 1: Thread
My app is react based app and I want to handle the processing of users through functions
Rank 1: Thread
I am using functions like rest api
sure...but i would try to minimize how long the function runs per execution