Filip Vesely
04/07/2025, 3:53 PMtap-klaviyo
to fetch data and load into target-postgres
. It works fine, but we have many millions of rows in the "event" table, so I would like to run meltano in batches. Only fetching few thousands of records per run. How can a approach this problem? Thank you!!Edgar Ramírez (Arch.dev)
04/07/2025, 11:41 PMevents
stream is sorted, so replication can be safely interrupted and it will start from the stored bookmark.
Some related issues and PRs:
• https://github.com/meltano/meltano/pull/8364
• https://github.com/meltano/meltano/issues/8716Filip Vesely
04/08/2025, 5:53 AMEdgar Ramírez (Arch.dev)
04/08/2025, 9:55 PMWhen I tryied to terminate meltano process after a while of running, it simply didn't loaded any data into our DB and started from scratch next time I started it again.Hmm. Might be worth setting https://hub.meltano.com/loaders/target-postgres/#batch_size_rows-setting to a small value to confirm that data is flowing. Also, which command did you run?
meltano run
handles incremental replication automatically, but meltano el
requires you to specify a --state-id
.Filip Vesely
04/10/2025, 1:53 PMmeltano run
(or even meltano el
), it doesn't save any state and next time it runs from the beginning.Edgar Ramírez (Arch.dev)
04/10/2025, 11:29 PMmeltano state list
and meltano state get <state-id>
? If it's empty, then it's probably a bug.Filip Vesely
04/17/2025, 7:52 PMCtrl + C
). However, I am able to provide a custom state to the el
command, where I set the most recent replication key value. So I am kinda able to do what I want. But it's a bit hacky.