Unified CDC File for Database Change Data Capture
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing Change Data Capture (CDC) solutions often require stopping database operations to manage meta information, leading to inefficiencies and increased memory usage, which can result in performance degradation and downtime.
Innovation Solution
A method that writes both meta information and SQL operation information into a single CDC file, allowing for efficient implementation of CDC without stopping database operations and reducing memory usage by loading meta information only for specific tables, thereby minimizing data latency and optimizing memory management.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If meta information is managed separately from SQL operations in CDC, then data integrity and traceability are improved, but device complexity and memory usage increase
Solution Approach 1:
The patent combines meta information and SQL operation information into a single CDC file, eliminating the need for separate management of these data types. This merging approach maintains data integrity through unified tracking while reducing system complexity by consolidating what was previously distributed across multiple storage and management mechanisms.
Solution Approach 2:
The CDC file serves multiple functions simultaneously: it stores both meta information about database objects and the actual SQL operations that modify them. This multi-functionality reduces the need for separate specialized structures for metadata management and operation logging, thereby simplifying the overall CDC system architecture.
2Speed
If all meta information is loaded into memory for CDC operations, then data access speed is improved, but memory usage increases significantly
Solution Approach 1:
The patent extracts and stores meta information directly in the CDC file alongside SQL operations, rather than loading all meta information into memory. This allows the system to access only the specific meta information needed for each operation from the file, reducing memory consumption while maintaining efficient access speeds for active operations.
Solution Approach 2:
Meta information is prepared and stored in the CDC file in advance with the corresponding SQL operations, so that when operations need to be replayed or analyzed, the required metadata is already available in the correct context without requiring separate memory loading steps.
3Reliability
If CDC operations are implemented with separate meta information management, then synchronization accuracy is improved, but productivity and operational continuity deteriorate due to required database stoppages
Solution Approach 1:
By merging meta information and SQL operations into a single CDC file, the system achieves both synchronization accuracy and operational continuity. The unified structure allows for accurate tracking of all database changes while enabling continuous operation without the need to stop the database for metadata management tasks.
4Ease of manufacture
If separate files are used for meta information and SQL operations, then information organization is improved, but loss of time occurs during file management and synchronization operations
Solution Approach 1:
The patent merges meta information and SQL operations into a single CDC file structure, eliminating the time-consuming file management operations associated with coordinating multiple separate files. The unified structure maintains clear organization through standardized formatting while removing the overhead of synchronized file I/O operations.
Data Source
AI summary
Disclosed is a computer program stored in a computer-readable storage including encoded commands. When the computer program is executed by one or more processors of a source database server, the computer program performs steps for Change Data Capture (CDC) by one or more processors. The steps may include: identifying a plurality of Structured Query Language (SQL) operations generated for one or more objects associated with a transaction by analyzing a log record including information about the transaction processed at a source database server; determining whether a previous SQL operation history for an object corresponding to an individual SQL operation is in a CDC file, based on whether an order in which the plurality of identified SQL operations occur; determining information to write on the CDC file based on whether a previous SQL operation history is in the CDC file; writing the determined information on the CDC file; and deciding to send the CDC file to a target database server.


