Note about Popen buffer size
This commit is contained in:
parent
f288f77aa4
commit
9fad6f5f38
|
@ -40,6 +40,9 @@ def backup_from_stdin(repository: str, filename: str, source_command: List[str])
|
||||||
])
|
])
|
||||||
|
|
||||||
# pipe source command into dest command
|
# pipe source command into dest command
|
||||||
|
# NOTE: Using the default buffer size: io.DEFAULT_BUFFER_SIZE = 8192
|
||||||
|
# We might want to tweak that to speed up large dumps.
|
||||||
|
# Actual tests tests must be done.
|
||||||
source_process = Popen(source_command, stdout=PIPE)
|
source_process = Popen(source_command, stdout=PIPE)
|
||||||
dest_process = Popen(dest_command, stdin=source_process.stdout, stdout=PIPE, stderr=PIPE)
|
dest_process = Popen(dest_command, stdin=source_process.stdout, stdout=PIPE, stderr=PIPE)
|
||||||
stdout, stderr = dest_process.communicate()
|
stdout, stderr = dest_process.communicate()
|
||||||
|
|
Loading…
Reference in New Issue