by dgea005 · 3y ago · 0 comments
Did you implement something like described here? https://netflixtechblog.com/dblog-a-generic-change-data-capt...
Lastly, I wonder what plugin you're using for the Postgres logical replication?
Congrats!
Edit: re-read it and saw about the DuckDB blog's inspired ctid solution for the initial snapshot. Do you find querying by ctid okay performance wise? As far as I remember it will use sequential scans
The former can be faster, because you’re able to walk the table in physical storage order, but your DB cannot reclaim WAL segments while this happens (disk can fill).
The latter allows for resumable backfills that can be tuned to the available spare capacity of the source DB, and doesn’t cause WAL segments to back up, but must walk tables in logical order which can sometimes be slower (for example, if you key using a random UUID).