Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
suvbin
Creator III
Creator III

Usage of batch apply mode and transaction apply mode

Hi ,

Can you please let me know the Usage of batch apply mode and transaction apply mode.  When to go for batch apply and when to go for transaction apply.

Thanks.

 

Labels (3)
5 Replies
Michael_Litz
Support
Support

Hi @suvbin 

Batch Apply is the default setting because it is much faster than Transactional Apply.

Transactional Apply mode is generally slower than Batch apply mode because the task will replay the source TLog transactions exactly as they are ordered in the source TLog. Each update to a record will be applied to the target one statement at a time.

Batch Apply mode will do many optimizations to the transactions that it reads from the source Tlog. A couple of examples would be the combining of several statements on one table into a single statement. Like the Insert followed by a couple of update statements would be combined into a single Insert Statement, or several Update statements that would be combined. The most import thing that batch will do is apply all the records in the bac=tch as a single command to the target instead of hundreds, if not thousands of individual statements.

 

In general batch apply should be used since it is faster.

In some task environments like a Bi Directional task pair it is required to use transactional mode.

 

Le me know if this helps out and or please accept this as a solution

Thanks,
Michael Litz

suvbin
Creator III
Creator III
Author

changing batch apply mode to transaction apply mode and vice versa will get rid of current attrep_change table.? If so why to to like this. 

Michael_Litz
Support
Support

Hi @suvbin ,

You typically would set the task to use either or.

I have not seen a use case where the task was switched from one to the other.

Thanks,
Michael Litz

SushilKumar
Support
Support

Hello Team,

In addition to the previous comments .In general batch apply should be used since it is faster.

In some task environments like a Bi Directional task pair it is required to use transactional mode or where customer want data in the way it was applied on the Source database. 

Where the Changes are very less. in Such case Qlik replicate may wait to create a batch to apply onto target endpoint.

hope its helps.

Regards,

Sushil Kumar