Skip to content

Commit

Permalink
🎉 Redshift Destination: Disable STATUPDATE flag when using S3 stagin…
Browse files Browse the repository at this point in the history
…g to speed up performance (#5745)
  • Loading branch information
yahu98 committed Sep 3, 2021
1 parent 273fe86 commit e732906
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public void copyS3CsvFileIntoTable(JdbcDatabase database, String s3FileLocation,
final var copyQuery = String.format(
"COPY %s.%s FROM '%s'\n"
+ "CREDENTIALS 'aws_access_key_id=%s;aws_secret_access_key=%s'\n"
+ "CSV REGION '%s' TIMEFORMAT 'auto';\n",
+ "CSV REGION '%s' TIMEFORMAT 'auto'\n"
+ "STATUPDATE OFF;\n",
schema,
tableName,
s3FileLocation,
Expand Down

0 comments on commit e732906

Please sign in to comment.