Closed AlexanderMann closed 5 years ago
While working on https://github.com/datamill-co/target-snowflake/pull/12 we figured out that leveraging the SQLInterface table upsert logic is far slower for the tmp staging tables than using a single command in remote.
SQLInterface
tmp
Snowflake has the CREATE TABLE ... LIKE ... syntax that Postgres has as well.
CREATE TABLE ... LIKE ...
https://stackoverflow.com/a/44318466
Motivation
While working on https://github.com/datamill-co/target-snowflake/pull/12 we figured out that leveraging the
SQLInterface
table upsert logic is far slower for thetmp
staging tables than using a single command in remote.Snowflake has the
CREATE TABLE ... LIKE ...
syntax that Postgres has as well.