Payload cloud hosting REST API is very slow #6140
Unanswered
frederico-taramaschi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Payload cloud hosting REST API is very slow. When making calls to collections with only 50-60 documents present in total the response time is always 2-5 seconds (just the API call). This seems to be caused by relationship fields as setting depth=0 seems to correct the issue but this should not be needed as on my local dev this is a complete non issue and calls will only take 150-250ms with the exact same data. And there are not really many relationships present, nor are they deeply nested or anything like that.
I have tried adding and removing indexes to see if that has any effect but it doesn't appear to change a thing.
Are there any specific Payload Cloud hosting things I need to take into account?
Beta Was this translation helpful? Give feedback.
All reactions