jacob_mulligan
06/01/2023, 2:24 PMid
column for the primary key and updated_at
should be the replication-key
for almost all tables. Is it possible to set updated_at
as the default for all tables?jacob_mulligan
06/01/2023, 2:26 PMplugins:
extractors:
- name: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
config:
host: ${ARC_DB_HOST}
user: ${ARC_DB_USER}
port: ${ARC_DB_PORT}
password: ${ARC_DB_PASSWORD}
dbname: ${ARC_DB_NAME}
default_replication_method: INCREMENTAL
filter_schemas: public
ssl: true
select:
- users.*
metadata:
users: # from what I can tell, we'll need to duplicate these lines for EVERY table?
replication-method: INCREMENTAL
replication-key: updated_at
updated_at:
is-replication-key: true
We have ~80 tables though and ideally i'd be able to set it up so that the metadata that's there for users
would instead be the default for all tables.
is this possible?pat_nadolny
06/01/2023, 2:42 PM'*'
in place of users
under the metadata key and it should apply that metadata to all streamsjacob_mulligan
06/01/2023, 2:42 PMjacob_mulligan
06/01/2023, 2:43 PMpat_nadolny
06/01/2023, 2:43 PMpat_nadolny
06/01/2023, 2:44 PMjacob_mulligan
06/01/2023, 2:45 PM"*_full":
jacob_mulligan
06/01/2023, 3:27 PMFULL_REFRESH
every time because there are no timestamp columns which we can use for incremental loads. I thought I might be able to do this to have these tables full refresh, however, it looks like the replication-method
config does what i expected because Meltano still tries syncing it incrementally and fails because the table doesn't have the (default) updated_at
column
'some_table':
# this table doesn't have a created_at or updated_at column, so we're doing a full refresh every day.
replication-method: FULL_REFRESH
what are my options for just full_refreshing these tables?pat_nadolny
06/01/2023, 3:53 PMtap-postgres-incremental
and tap-postgres-full-table
, sometimes this is a recommended practice anyways because sync frequency is commonly coupled with replication method i.e. incremental is run more often (hourly) than full table (daily?)