-
Notifications
You must be signed in to change notification settings - Fork 1
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
Turn suppression list CSV into a set of SQL files to be ran on the server #892
Conversation
aeb8db9
to
a79e69e
Compare
a79e69e
to
4b6fdb5
Compare
suppression-list/csv2optout.py
Outdated
END; | ||
$$; | ||
|
||
CREATE TEMPORARY TABLE IF NOT EXISTS imported_{tmp_suffix} ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a table suffix for a temp table? The table would be dropped at the end of the session by default (or at the end of a transaction if we specify on commit drop
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right, this is not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems reasonable for a one-off import
I'll merge this because it was done. If the location in the repo is not adecuate, I'm happy to move it. |
estimate time of execution of join query on primary_email in prodturn joins into batches