Appwrite Cloud Delay from hosted in Frankfurt Germany to North America West (Utah)
- 0
- Web
- Databases
- Auth
- Cloud
- Functions
So I was asked by @D5 to create this post, so it can be discussed further
Ive added the tags that correlate to my project and what i mostly use and where i see the delay being
Attached image is the point where i create a Email Password Session and based off the user information i will request additional information like the latest news posts for the website
In my previous message i left a statement where i would see 2.5 second delays for single GET request, and when it does more than 1 it takes 6 - 10 seconds, these are in my more heavier spots, but the login combined takes 6 secs based off a stop watch time.
I can add more data if needed
according to the screenshot you shared, the create email session api call takes ~500ms π§
the list documents is taking a while...
- can you use getDocument() instead of listDocuments()?
- do you have relationships?
the documents use alot of relationships, im guessing your pointing that out, so it may be the culprit to my entire issue here?
yes. lots of relationships can slow things down a lot
Okay that also explains why things are alot faster when no relationships are used
why are they so slow?
For every document, for every relationship, Appwrite has to do an additional db query because the data needs to come back nested and permissions needs to be considered at the collection or document level
And relationships go as far as 3 levels deep
Ahh I see, so all that compounding just is pretty much unavoidable.
I'll work on removing relationships then in order to speed things up
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Enabling Overage Usage
Hello Appwrite Support Team, I am currently using Appwrite under the GitHub Student Developer Pack plan. Recently, my project hit the database read limit, and ...
- appwrite-docs MCP fails in Cursor β SSE ...
Hi team, I'm having trouble getting the hosted Appwrite docs MCP working in Cursor on Windows. Environment IDE: Cursor (latest) OS: Windows 11 Node: v24.15.0 ...