Back

The first call to the functions takes between 15 and 30 seconds to be executed

  • 0
  • Self Hosted
  • Flutter
  • Functions
AusiasBM
9 Feb, 2025, 01:38

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.

TL;DR
Issue: Appwrite functions take between 15-30 seconds to execute on the first call, leading to timeouts and fetch failed errors. Subsequent calls have normal response times. Solution: This seems to be a common issue with Appwrite 1.6.0. Try optimizing your functions and possibly caching results to improve performance on initial calls.
AusiasBM
9 Feb, 2025, 01:46

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.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more