Migrating from Supabase to Railway Postgres service
Will I see a performance increase if I move from a database hosted on Supabase to the postgres service in Railway.
If so, how would I go about transferring the data?
Thanks!
24 Replies
Project ID:
N/A
You'd probably see less egress cost if you use railway databases since you can use private network which doesn't count towards egress, and I can definitally see it being faster
Nice, any idea how to move the data over?
pg_dump and pg_restore
Why can't i connect to the private url?
this is during the build stage if that matters
is that during build?
if so, the private network is not available during build
oh ok
so much better 😊
before:
after:
are you using the private url during runtime?
yeah
awsome!
just moved my db migration stuff to the start command instead of the build command
yeah thats a good compromise, but make sure you use a healthcheck so that railway knows when your app has actually started!
https://docs.railway.app/deploy/healthchecks
oooh ok
am i doing it wrong
haha nope, known issue
one sec
until the webui is fixed you would have to set the healthcheck path in a railway.json file, put this in said file at the root of your project
ok thanks!
any eta on the fix?
ill try to push the team to get it fixed by eod monday (i dont work for railway)
lol thanks, i'll probably just wait then
not planning on redeploying before then
updating the health check from the ui would redeploy fwiw
i set it by clicking the button directly with js rather than my mouse
haha out of all the reports I've seen of this issue, you are the only one to prevail