forked from transferwise/pipelinewise-target-snowflake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While reading replication data from postgres just create s3 files and do not load them in snowflake. When the replication is finished load all files for each table at once - this way will limit import calls to snowflake abd import bigger batches - which is alwais better in snowflake. Also files will not be deleted when they are loaded, but we will keep them in s3 for a week - cleaned later using lifecycle Also update the S3 prefix to include hour and minutes - to avoid having data imported mutiuple times when we have same pid in the same day.
- Loading branch information
Showing
3 changed files
with
20 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters