Skip to content
Postgres db is slow asfk

3 years ago

Anyone know why my postgres db takes around 3-4 seconds to find one row in my database.

Solved

55 Replies



3 years ago

In this video i show how slow it is


3 years ago

N/A


3 years ago

where are you located geographically compared to your database?


3 years ago

in denmark and the its placed in the us i think


3 years ago

but i have once had an postgres before, also in the us. But then it was not this slow


3 years ago

you're pro as far as I can tell, try moving your database closer


3 years ago

I'm not on the pro plan anymore. I dont know why i have the role still


3 years ago

but i can upgrade mabye, but its beacuse i have 100$ in credits.


3 years ago

and i wanna use them before i upgrade to pro


3 years ago

well Denmark is quite far away from us-west1 so the time you see makes total sense, databases are very susceptible to distance and rtt


3 years ago

Yeah, what other regions does railway have?


3 years ago


3 years ago

I see they have Amsterdam. Do i need to pay more than the 20$ for pro if i upgrade?


3 years ago

$20 for the seat and then any additional resources you use


3 years ago

Arr alright. And my credits will not work then ig?


3 years ago

there's no extra costs for regions as all regions are available for pro users


3 years ago

Okay thanks!


3 years ago

you'd need to open a thread and ask the team to move them over once you have already signed up for a pro plan


3 years ago

Alright beacuse i got 100$ 💀

1232374508527161385


3 years ago

I can't see them having any issues doing that for you


3 years ago

Alright, it is on i need to do that?


3 years ago

yeah, but you'd first need to be on pro to open a private chat with the team


3 years ago

of course also because you'd need a pro plan for them to have a place to move the credits to


3 years ago

Yeah makes total sense, i'm on pro plan again now!


3 years ago

awesome, move that database over!


3 years ago

Amsterdam is quite close to Denmark so thats great


3 years ago

Yeah, thanks again for your help!


3 years ago

no problem!


3 years ago

@Brody much faster now!


3 years ago

awsome!


ob-vest

3 years ago

Interesting. I also live in Denmark, but it isn't super slow for me.


3 years ago

kan du snakke dansk så?


ob-vest

3 years ago

Jeps


3 years ago

Sådan


3 years ago

(try to maintain the convo in english guys, so if someone has the same issue he can try to guide himself through this thread)


3 years ago

ohh sorry.


ob-vest

3 years ago

Did you just want to confirm whether I speak Danish 🤣 Or do you actually have a question?


3 years ago

Just to confirm, its not every there is someone from same contry as me


ob-vest

3 years ago

🇩🇰


ob-vest

3 years ago

I do hope that railway listens to previous proposals about allowing users in the hobby plan to set a default region.


3 years ago

@Brody The 20$ of the estimated bill also includes the member seat right?



3 years ago

yes


3 years ago

Alright thanks!


3 years ago

@Brody I got a question nixpacks with bun. Would this work?

# nixpacks.toml
[phases.setup]
    nixpkgsArchive = 'd05592ea7e9656648093dfe0e817819486bd5054'

[start]
cmd = "bunx prisma migrate deploy && bunx prisma generate && bun run start"

3 years ago

I'm testing with nixpacks locally


3 years ago

just a friendly reminder <#727685388893945877> #5


3 years ago

but yes, that does get nixpacks installing bun 1.1.4


3 years ago

ohh i'm so sorry. But it seems not to work ig

1234162818274824295


3 years ago

can you open a new thread for that


3 years ago

Yes


3 years ago

there no need for pings


3 years ago

You're right. But created the thread


Status changed to Solved medim • 7 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...