Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is CDC ? Can anyone explain with an example?
And suppose i have data from 1st Feb 2025 to 28th Feb 2025
I need to implement CDC on daily basis like from 1st March 2025.
How to do that?
Hi!
Qlik CDC can be implemented using Qlik Replicate or through Qlik Sense/QlikView with incremental load.
You can track changes using database logs (e.g., MySQL binlog, SQL Server CDC, PostgreSQL WAL), Timestamps (e.g., UpdatedAt column), triggers on tables (if database supports it)
Before starting CDC, ensure you have loaded the full dataset until 28th Feb 2025.
SELECT * FROM Orders WHERE Timestamp < '2025-03-01';
From 1st March 2025, you need to load only the new and updated records daily.
Example Query for Daily CDC (for 1st March 2025)
SELECT * FROM Orders WHERE Timestamp >= '2025-03-01' AND Timestamp < '2025-03-02';
If using Qlik, set up an Incremental Load Script:
LET vLastLoadDate = '2025-02-28';
Orders:
LOAD OrderID, Customer, Amount, Status, Timestamp
FROM Database
WHERE Timestamp > '$(vLastLoadDate)';
LET vLastLoadDate = Today(); // Update last processed date
Schedule the CDC process daily in Qlik Sense/QlikView, if using Qlik Replicate, configure continuous replication from source to destination.
Hi!
Qlik CDC can be implemented using Qlik Replicate or through Qlik Sense/QlikView with incremental load.
You can track changes using database logs (e.g., MySQL binlog, SQL Server CDC, PostgreSQL WAL), Timestamps (e.g., UpdatedAt column), triggers on tables (if database supports it)
Before starting CDC, ensure you have loaded the full dataset until 28th Feb 2025.
SELECT * FROM Orders WHERE Timestamp < '2025-03-01';
From 1st March 2025, you need to load only the new and updated records daily.
Example Query for Daily CDC (for 1st March 2025)
SELECT * FROM Orders WHERE Timestamp >= '2025-03-01' AND Timestamp < '2025-03-02';
If using Qlik, set up an Incremental Load Script:
LET vLastLoadDate = '2025-02-28';
Orders:
LOAD OrderID, Customer, Amount, Status, Timestamp
FROM Database
WHERE Timestamp > '$(vLastLoadDate)';
LET vLastLoadDate = Today(); // Update last processed date
Schedule the CDC process daily in Qlik Sense/QlikView, if using Qlik Replicate, configure continuous replication from source to destination.
Thanks for sharing it will really helpful for me.
Hi! I am glad it helped, have a good day