sql - How to make duplicate a postgres database on the same RDS instance faster? -


thank guys in advance.

i having 60gb postgres rds on aws, , there databasea inside rds instance, want make duplicate of databasea called databaseb in same rds server.

so tried run create database databaseb template databasea owner postgres; single query took 6 hours complete, slow. see max iops during process 120, not close limit of aws general ssd's limit 10,000 iops. have tried tunning work_mem, shared_buffers, effective_cache_size in parameter group, there no improvements @ all.

my last option create 2 separate rds instance, easier if can in 1 instance. i'd appreciate suggestions.

(the instance class db.m4.xlarge)

as mentioned matt; have 2 options:

  1. increase server size give more iops.
  2. switch provisioned iops

as temporary requirement go 1 because u can upgrade max. available server --> database copy --> downgrade db server seamlessly , won't take time. switching ssd provisioned iops take lots of time because needs convert data , hence more downtime. , later again when u switch provisioned iops ssd again take time.

note both 1 & 2 expensive ( if u dont need them ) if used long term; u can't leave is.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -