Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I’m currently tasked with replicating over all of our erp tables to a staging area using Qlik replicate for cdc. Unfortunately replicate has a huge latency when you use tables with no primary keys, what is the common solution here? Do I use another way of replication or do I assign and create a PK for every table(132tables)?
Hi @numbrkar ,
Thank you for reaching out to the Qlik Community.
Without access to the task log, I'm unsure whether the latency is occurring on the source side or the target side. If your target table does not have a primary key, the performance will indeed be especially impacted during updates and deletes. Additionally, batch optimized apply cannot function without primary key.
So, if possible, please add a primary key for each table. If your source database is DB2 iSeries, you can use the Record Relative Number (RRN) as a workaround in the absence of a primary key. You may also check with our professional service team for further advice.
Regards,
Desmond
Hi @numbrkar ,
As per my knowledge, there are a couple of ways to approach this problem.
Hi @numbrkar
When dealing with Change Data Capture (CDC) using Qlik Replicate, the presence of primary keys (PKs) is crucial for efficiently identifying and replicating changes. The latency issues you're experiencing are likely due to the difficulty in tracking changes without PKs.
Please coordinate with your DBA on adding PK's to these tables and check the impact.
Thanks
Naren