Hi Guys, I have a postgres table that contains up to 50 million records. This needs to be replicated to another postgres database. The replication is working fine. However, two tables are generated, the normalized table and a table that contains the record in json format. Is there any way to stop the json formatted table from replicating as this is consuming large volume on the database. Thanks
m
Marcelo Pio de Castro
03/10/2023, 12:01 PM
Airbyte by default works with an ELT based approach, so the json is needed for it. I have done customizations to the destination connector for SQL Server that makes it write to a normalized table directly, it is not too hard, it only took 3 days of work for me, so it is possible to do, just not by default
j
Jamiu Afolabi
03/10/2023, 12:17 PM
Thanks for the response. Is there any best practice approach to carry out cleanup of __airbyte__raw table once replication is completed to the normalized table
m
Marcelo Pio de Castro
03/10/2023, 12:30 PM
I really don't know, looking at the dbt I don't think there is an issue cleaning it, but I didn't look very much...
You can always test it, maybe rename the table as a backup and create it again but empty and see if aibyte doesn't complain about it