Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Vikash2024
Creator
Creator

CDC (Change Data Capture)

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?

1 Solution

Accepted Solutions
diegozecchini
Specialist
Specialist

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.

View solution in original post

3 Replies
diegozecchini
Specialist
Specialist

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.

Vikash2024
Creator
Creator
Author

Thanks for sharing it will really helpful for me.

diegozecchini
Specialist
Specialist

Hi! I am glad it helped, have a good day