The first call to the functions takes between 15 and 30 seconds to be executed
- 0
- Self Hosted
- Flutter
- Functions

I have a very big problem with appwrite functions. I am using appwrite 1.6.0 and all the functions that I have have the same problem, in the first call they take between 15 and 30 seconds or sometimes more to execute, failing due to time out. And then you run it again and it works perfectly, they even make response times of less than 1 second. I don't know what to do to fix it, because of this the user experience of my application is very bad.

and another problem added to the timeout in the first execution, also sometimes it is related to the fetch failed bug. Something that causes it to give an error. It is not every time, but it usually happens at the same time.
Recommended threads
- Having errors migrating to cloud
Project will not migrate compeltely
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- ENV vars not updating
When i do `nano .env` it shows `_APP_DOMAIN_TARGET=` as set to my domain, but when i do `docker compose exec appwrite vars` it shows `_APP_DOMAIN_TARGET=` as ...
