Skip to content

Commit 814ac78

Browse files
committed
explicitly specify read buffer size when doing COPY
1 parent cc1fe96 commit 814ac78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datapusher/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None):
14411441
sql.Identifier(resource_id),
14421442
column_names,
14431443
)
1444-
with open(tmp, "rb") as f:
1444+
with open(tmp, "rb", 8192) as f:
14451445
try:
14461446
cur.copy_expert(copy_sql, f)
14471447
except psycopg2.Error as e:

0 commit comments

Comments
 (0)