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
- Other DateTime Columns Are Saved Incorre...
When opening a row’s details from the console and editing any field, the timestamps of other DateTime columns are being automatically changed and incorrectly sa...
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- GOT 500 error when going to the appwrite...
I gott 500 internal error screen and my API is timeout. please help to take a look. Traceback (most recent call last): File "D:\conda\envs\wrista\Lib\site-pa...