We are facing well-known pg_dumps effeciency problems in terms of velocity. We currently have a Azure hosted PostgreSQL, which holds our resources that are being created/updated by SmileCDR. Somehow after three months it is getting larger due to saving FHIR objects. Now, we want to have brand new environment; in that case persistent data in PostgreSQL has to be ripped out and new database has to be initiated with old data set.
Please be advised.
- pg_dump consumes relative much more time, almost a day. How can we speed up backup-restore process?
- What kind of alternatives that we could use and apply whereas pg_dump to achieve the goal?
Important notes;
- Flyway utilized by SmileCDR to make versioning in PostgreSQL.
- Everything has to be copied from old one to new one.
- PostgreSQL version is 11, 2vCores, 100GB storage.
- FHIR objects are being kept in PostgreSQL.
- Some kind of suggestions like multiple jobs, without compress, directory format have been practiced but it didn't affect significantly.