Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange CDC Introduction
  3. Part 2: PowerExchange CDC Components
  4. Part 3: PowerExchange CDC Data Sources
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for Linux, UNIX, and Windows

CDC Guide for Linux, UNIX, and Windows

Example 2. UOW Count and Time-Based Commits

Example 2. UOW Count and Time-Based Commits

This example uses the
UOW Count
and
Real-time Flush Latency in milli-seconds
attributes to control commit processing. The change data consists of UOWs of varying sizes.
The following table describes the commitment control attribute values that this example uses:
Attribute
Value
Maximum Rows Per commit
0, which disables this attribute
Minimum Rows Per commit
0, which disables this attribute
Real-time Flush Latency in milli-seconds
5000, which is equivalent to 5 seconds
UOW Count
1000
Initially, PWXPC reads 900 complete UOWs in 5 seconds. Because the real-time flush latency interval has expired, PWXPC flushes the data buffer to commit the change data to the targets. PWXPC then resets both the UOW counter and real-time flush latency timer. When PWXPC reaches UOW 1,000, PWXPC does not commit change data to the targets because the UOW counter was reset to 0 after the last commit.
PWXPC reads the next 1,000 UOWs in 4 seconds, which is less than the real-time flush latency timer. PWXPC commits this change data to the target because the UOW counter has been met. After this commit, PWXPC then resets the real-time flush latency timer and the UOW counter.
PWXPC continues to read change data and commit the data to the targets, based on the UOW count or the real-time flush latency flush time, whichever limit is met first.
In this example, PWXPC commits change data at the following points:
  • After UOW 900 because the real-time latency flush latency timer matched first.
  • After UOW 1,900 because the UOW count matched first during the second commit cycle.

0 COMMENTS

We’d like to hear from you!