Hi all, here's a use case that I'm facing some dif...
# troubleshooting
n
Hi all, here's a use case that I'm facing some difficulties with. 1. Read MySQL binlog using CDC 2. Store the CDC logs as objects in S3 for achieval purposes 3. Process the CDC logs to generate a table for business consumption I'm thinking to store the CDC logs as a delta lake table because our silver layer is already in delta lake. I'm facing difficulties on how to consume the cdc logs and producing an actual table. Do I perform an action (INSERT,DELETE) for every message I get? Do I maintain an in-memory table in flink and have that pushed to a sink? My table is huge (terabytes), maintaining in memory might be costly. Any input is appreciated.
r
Hi @Nicholas Leong! I do not have much experience with Delta Lake tables and how it's supported in Flink as we use Iceberg usually, but basically you might use MERGE INTO to materialize your CDC events into a replicated/copy table. Remember to check what will be better for your use case: merge-on-write or merge-on-read (primarily, on-write). And usually it's much better to do writes in pretty big batches, definitely not by single row. Hope it helps.