Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

How to isolate target latency in Qlik Replicate: Apply no Bulk Event

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Steve_Nguyen
Support
Support

How to isolate target latency in Qlik Replicate: Apply no Bulk Event

Last Update:

Mar 20, 2023 9:04:59 AM

Updated By:

Sonja_Bauernfeind

Created date:

Mar 10, 2023 8:13:59 AM

With Qlik Replicate performance logging set to trace, you may find the following log entries:

PERFORMANCE ]T: Source latency x.x seconds, Target latency x.x seconds, Handling latency x

Examples:

target latency qlik replicate log.png

 

This is how to identify what is causing the latency:

  1. With Qlik Replicate logging set at the performance trace level, we can see that there is Target latency, so our next step is to identify what is happening on the target. We set the task log Monitor/Tools/Log Management/TARGET_APPLY, Verbose and monitor for approximately 15 minutes.

  2. Afterwards, we review the log (use a text editor such as Notepad++) and search for:
     

    • no Bulk
    • no PK
    • one-by-one

  3. In our case we locate the following:

    00004452: 2023-03-06T21:45:03:512870 [TARGET_APPLY ]V: Apply no Bulk Event - 'DELETE (5)' for table 68 (bulk_apply.c:2567)
    00004452: 2023-03-06T21:45:03:514873 [TARGET_APPLY ]V: Delete statement

    ~{8wAAAAbfkCA2HbtSjNsuvYe0eihWpVFZaYVWoHxNzhTAS+jNq3BeRmPhCOnY5ak6C7udqTkWsF5wWEHzff/...

  4. We see that the Delete statement is encrypted because it sstartswith ~{xxx... ex. ~{8wAAAAbfkCA2HbtSjNsuv

  5. To find how what table 68 is, we have to decrypt the task log to see the delete statement on the table. See How to Decrypt Qlik Replicate Verbose Task Log Files

  6. After decryption, we can now see the table name.

  7. We now check for the following:

    Does the table contain LOBs?
    Does the table have PK on source and target? 

  8. In our case, the table does not have PK on target, causing the task to apply no Bulk Event. This results in a latency on the task. 

  9. A quick fix is to:

    1. Stop the task,
    2. remove the table that has no PK from the task,
    3. then resume the task.

 

 

Environment

Qlik Replicate 7.0 and above

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Labels (2)
Version history
Last update:
‎2023-03-20 09:04 AM
Updated by: