Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Redshift Destination: Disable STATUPDATE flag when using S3 staging to speed up performance #5745

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

yahu98
Copy link
Contributor

@yahu98 yahu98 commented Aug 30, 2021

What

Describe what the change is solving

Apply optimization to redshift
#4871

How

Describe the solution

I changed the Redshift COPY command to speed up the process to copy csv files from staging s3 bucket to redshift. Specifically, I set the STATUPDATE parameter flag to be off. The STATUPDATE flag is responsible for running statistical computation to optimize future queries on the table. Since the table in our use case is temporary and the queries, computing these statisitics creates an unnecessary overhead. The performance saw an around 10% boost during my test runs.

redshift-improvement

## Recommended reading order 1. `RedshiftStreamCopier.java`

Pre-merge Checklist

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions
  • Connector version bumped like described here

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here

@github-actions github-actions bot added the area/connectors Connector related issues label Aug 30, 2021
@sherifnada sherifnada changed the title redshift destination improvement #1 🎉 Redshift Destination: Disable STATUPDATE flag when using S3 staging to speed up performance Sep 3, 2021
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yahu98 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants