a year ago
Hello,
I recently deployed my Django app on Railway, where I also set up PostgreSQL and Redis, connecting them to my project. However, I’ve noticed that my queries and cache requests are significantly slower compared to when running locally—by several orders of magnitude.
For instance, one of my views executes queries in 2.58ms on my local database but takes 7411.42ms on Railway. Similarly, the same view’s cache time is 24.14ms on local Redis but 2122.14ms on Railway.
I understand that some performance drop is expected when moving to a cloud-hosted environment, but this level of slowdown seems excessive.
Does anyone have any insights into what might be causing such a drastic difference?
For context, I connected both Redis and PostgreSQL using the regular (non-public) URL provided by Railway.
Thanks!
2 Replies
a year ago
Hi there, could you please try putting all your services on the same region and seeing if there is any latency improvement?
Status changed to Awaiting User Response Railway • 11 months ago
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Solved brody • 11 months ago
