Skip to content

Commit

Permalink
explicitly specify read buffer size when doing COPY
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Jan 23, 2024
1 parent cc1fe96 commit 814ac78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapusher/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None):
sql.Identifier(resource_id),
column_names,
)
with open(tmp, "rb") as f:
with open(tmp, "rb", 8192) as f:
try:
cur.copy_expert(copy_sql, f)
except psycopg2.Error as e:
Expand Down

0 comments on commit 814ac78

Please sign in to comment.