slymilano
Seeing slow 50ms queries for simple select * of a 2000 record query to a Supabase database.
Example of a query that takes 54ms:
Normally when I host an app in Railway, the app and database are in the same geo and hosted by the same PaaS. I see much faster response times for much beefier queries and table sizes.
So what's going on - why is Supabase so slow?
- My app is currently hosted in Railway, US West (Oregon, USA)
- My Supabase "app" (the database) is hosted in "West US (North California) - AWS t4g.small
- I'm connect to Postgres using the ipv4 addon, and using the non pooler connection string url.
Is this just the expected latency?
10 replies
Fresh Phoenix / Postgres project. DBConncetionError. Works fine on Render?
Hello, I'm trying out Railway after nearly two years to see what it's like. I'm seeing an error trying to run my brand new Phoenix project.
This same Dockerfile works fine on Render. Any ideas why this is happening? Project id is:
429a2255-e11f-4860-acd2-0d61fae16250
15 replies
Hey guys - quick Q is there a way to ssh into a running box so I can run rai
slymilano — 10/07/2022
Hey guys - quick Q: is there a way to ssh into a running box so I can run rails console against my prod and do some stuff against production data using my Ruby code? (This was not possible a few months ago, so I'm checking again)
8 replies
How can I open an interactive console into my box?
In Rails you could do in Heroku back in the day
heroku run rails console
.
In Render.com I can just open the interactive shell in the website and bin/my_app console
to get an interactive Elixir shell to run some commands inside my app.
How can I do the same in Railway? I need to run some Elixir code against prod to create some records. Thanks!8 replies
How to run database migrations?
In my Dockerfile, at the very end, I want to run the database migrations, then run the app server.
But it seems like my migrations are never executed.
In the Build Logs I see:
And in my Deploy Logs:
So that last CMD does seem to be running, why would the one right above it not run?
CMD ["/app/bin/migrate"]
23 replies