
Hi,
I have appwrite 1.7.4 self hosted I have a Node.js function that does several operations:
- Query a collection to get a document, currently there is a single document in that collection and the query filters by a unique indexed field
- Upsert a document in another collection
- Query a document
- If the document of 3# doesn't exist, creates a document
- Insert a 200kb file to a bucket
All of this is done usually in under 400ms when I invoke it once
If I invoke this functions 10 times concurrently then around 40% of them fail on timeout even that I tried increasing the timeout to 30 (more fails, because it's a sync function)
90% of the time the problematic query that stucks is the one in the first operation.
What can I do to fix this? I have a vps with 4 cores and 8gb ram
I need it to be capable to handle more concurrent executions of this function
Recommended threads
- Relationships. Delete on cascade through...
Hi all!, When I delete a document throught the Apple SDK, on delete cascade is not working. If I delete the document from the console (Cloud), a dialog is show...
- Trouble Using Appwrite Sites on Self-Hos...
Hi team, I’m currently self-hosting Appwrite v1.7.4 using Dokploy (Compose Type: docker-compose) and everything in the deployment appears to be functioning — C...
- Function issue.
We're facing a critical issue with our Appwrite Function where the Python runtime (context.req.body) consistently receives an empty request body for POST reques...
