R
Railway9mo ago
R

Migrating database to railway

Hi, I'm trying to migrate a project to railway and initialize/populate a postgre database with content. I did this (naively) by django dumpdata (on previous instance) and loaddata (through railway cli). This approach, however, is painfully slow. Is this expected? According to metrics it's running around 3-5kbps. There must be a better way? Project id: 6e8bbf6b-235b-4f1b-903a-714c7d612be7
4 Replies
Percy
Percy9mo ago
Project ID: 6e8bbf6b-235b-4f1b-903a-714c7d612be7
Brody
Brody9mo ago
you could try pg_dump and pg_restore?
R
R9mo ago
Thanks - this was much faster. (for posterity) the restore didn't work well if it was done after the django app was deployed, needed to manually drop all the tables and --no-owner
Brody
Brody9mo ago
awesome!