2 years ago
Hello, I'm from Brazil and I have a database hosted on Railway for a desktop application. I would like assistance to improve the query speed. Currently, I have the pro plan and the server is in Virginia.
34 Replies
2 years ago
<@700335557925928970> are you brazilian? if so, do you mind upvoting this community suggestion ? Bora trazer o Railway pro Brasil 😉
2 years ago
Also, what's the query latency? Can you be more specific on how much slow it is?
2 years ago
reqs from Brazil -> USA you can expect 150-200+ ms
2 years ago
Hello, I'm from Brazil
are you brazilian?
2 years ago
that is my copy paste text 💀
2 years ago
i know 🤣
2 years ago
It's just your DB that is hosted on railway? or it's also your API?
2 years ago
What type? Postgres?
2 years ago
ouch, you use an ORM or raw queries?
2 years ago
I really don't know what could be slowing down your queries, I would blame SQLAlchemy 'cause railway doesn't seems like the culprit here.
2 years ago
And since you are on the pro plan, I don't think its a hardware or a network limitation
2 years ago
<@700335557925928970> 150ms might not seem much but for database is a lot, maybe it's better to have an API in the same region that your desktop application uses
Status changed to Solved Railway • almost 2 years ago
2 years ago
had problems where my application was in the us-west region and the other on us-east, the latency went up about 1s
2 years ago
and also this feature request would help you a lot because it would be in Brazil the database
In MySQL Workbench, the latency is around 200ms, but in the application, it's more than 5s
2 years ago
I was using Prisma(nodejs orm) in mine and it had the same problem
2 years ago
100%
2 years ago
use some encoding like gzip in your API and it'll help a lot also
2 years ago
if you're using Prisma, try out accelerate
https://www.prisma.io/data-platform/accelerate
2 years ago
I don't know if it works for your case, but it's worth a shot before building the API
2 years ago
cc <@700335557925928970>
2 years ago
Guys, this question is kind of off topic but, I didn't open the railway for a long time and the option to send queries in the database disappeared…. What do I do now? Where did he go? I can't find it.
2 years ago
tsemh, please use English as this is an English only community.
Though I have translated the message - that functionality is gone, please use a proper database client like dbgate
2 years ago
Alright, thank you bro.