Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7582bbb

Browse filesBrowse files
committed
Add default parallelJobs in logical-restore
A minor correction to point out that restoring can be parallelized.
1 parent 8492561 commit 7582bbb
Copy full SHA for 7582bbb

File tree

2 files changed

+11
-4
lines changed
Filter options

2 files changed

+11
-4
lines changed

‎configs/config.example.logical_generic.yml

Copy file name to clipboardExpand all lines: configs/config.example.logical_generic.yml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ retrieval:
187187
# tables:
188188
# - test
189189

190-
# The number of parallel jobs to get a dump.
190+
# Use parallel jobs to dump faster.
191191
# It's ignored if "restore" is present because "pg_dump | pg_restore" is always single-threaded.
192192
parallelJobs: 2
193193

@@ -210,9 +210,13 @@ retrieval:
210210
# The location of the archive file (or directory, for a directory-format archive) to be restored.
211211
dumpLocation: "/var/lib/dblab/db.dump"
212212

213-
# The Docker image containing the tools required to restore
213+
# The Docker image containing the tools required to restore.
214214
dockerImage: "postgres:12-alpine"
215215

216+
# Use parallel jobs to restore faster.
217+
parallelJobs: 2
218+
219+
216220
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.
217221
# Note the existing data might be overwritten.
218222
forceInit: false

‎configs/config.example.logical_rds.yml

Copy file name to clipboardExpand all lines: configs/config.example.logical_rds.yml
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ retrieval:
190190
# tables:
191191
# - test
192192

193-
# The number of parallel jobs to get a dump.
193+
# Use parallel jobs to dump faster.
194194
# It's ignored if "restore" is present because "pg_dump | pg_restore" is always single-threaded.
195195
parallelJobs: 2
196196

@@ -213,9 +213,12 @@ retrieval:
213213
# The location of the archive file (or directory, for a directory-format archive) to be restored.
214214
dumpLocation: "/var/lib/dblab/db.dump"
215215

216-
# The Docker image containing the tools required to restore
216+
# The Docker image containing the tools required to restore.
217217
dockerImage: "postgres:12-alpine"
218218

219+
# Use parallel jobs to restore faster.
220+
parallelJobs: 2
221+
219222
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.
220223
# Note the existing data might be overwritten.
221224
forceInit: false

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.