Hi All,
I am joining 2 tables with record counts of 5M & 50M and facing issues for job to even complete.
Following is the transformation, which seems quite straigtforward:
INSERT INTO AGGREGATION(ID,MAXDT1,MAXDT2)
SELECT TABLE1.ID,MAX(TABLE1.DT1) AS MAXDT1,MAX(TABLE2.DT2) AS MAXDT2
FROM TABLE1
INNER JOIN TABLE2
ON TABLE1.TABLE2_ID=TABLE2.TABLE2_ID AND TABLE1.ID IS NOT NULL
GROUP BY TABLE1.ID;
Any suggestions on how I can improve the performance of the join & aggregations.
Both my sources are topics in Kafka & I am using the kafka connector.
My target is also a kafka topic and I am using the upsert-kafka connector.