Permalink
Browse files

Merge pull request #2 from craigkerstiens/master

Use multiple jobs to parallelize the restore process
  • Loading branch information...
2 parents 9b15f84 + fdd2ef9 commit 953d32478549a15d441a7742e245013586a2f85d @ddollar committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.rb
View
@@ -68,7 +68,7 @@ def pg_restore_command(url)
host = uri.host || "localhost"
port = uri.port || "5432"
user = uri.user ? "-U #{uri.user}" : ""
- %{ env PGPASSWORD=#{uri.password} pg_restore --verbose --clean --no-acl --no-owner #{user} -h #{host} -d #{database} -p #{port} }
+ %{ env PGPASSWORD=#{uri.password} pg_restore --verbose --clean --no-acl -j 3 --no-owner #{user} -h #{host} -d #{database} -p #{port} }
end
def transfer_pretty_name(db_name)

0 comments on commit 953d324

Please sign in to comment.