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
- Dart 3.10 runtime on self-host 1.8.1
I added dart-3.10 runtime in .env file, applied the changes, but cannot see such option on console. is dart 3.10 not supported by self hosted 1.8.1? if not, whe...
- Guideline of AI
Hello everyone, I’m planning to specialize in Artificial Intelligence (AI) and I’m currently looking for guidance from someone with strong experience in the fi...
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.