Large object initialization method and device based on log analysis synchronization
An initialization method and large object technology, applied in the computer field, can solve the problem of low table initialization efficiency, and achieve the effect of preventing the accumulation of archived logs, improving storage efficiency, and reducing time-consuming
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] The data types of the database system include non-large object data (such as INT, CHAR, etc.) and large object data (such as CLOB or BLOB) types. The database supports multi-line batch query and storage of non-large object data. When building a data synchronization system The performance is faster when initializing a table that does not contain large objects; however, the database only supports single row single large object operations when querying and warehousing large object data, which greatly affects the initialization efficiency, and the long-term result set extraction and warehousing operations increase The risk of database error reporting during the initialization process, resulting in initialization failure.
[0048] For this reason, the present invention uses a two-stage initialization scheme for non-large object data and large object data when initializing data, and adopts a method of segmented parallel initialization of large object data to solve the problem ...
Embodiment 2
[0078] The above-mentioned embodiment 1 introduces the main steps of a large object initialization method based on log parsing and synchronization. On this basis, the embodiment of the present invention further introduces the complete steps of the transaction merge execution method in embodiment 1 in detail.
[0079] combine figure 2 with image 3 , a large object initialization method based on log parsing and synchronization provided by an embodiment of the present invention. in, figure 2 It mainly corresponds to the initialization process of the first stage (ie steps 101-110), image 3 It mainly corresponds to the initialization process of the second stage (ie steps 111-116), as follows:
[0080] Step 101, deploying synchronization systems on the source database and the destination database respectively. Wherein, the source-end data synchronization system is used to read logs from the source-end database, and the destination-end data synchronization system is used to a...
Embodiment 3
[0119] On the basis of Embodiment 1 and Embodiment 2 above, the embodiment of the present invention provides a specific example of a large object initialization method based on log parsing and synchronization, so as to better understand the entire transaction merge execution process.
[0120] In this specific example, it is assumed that there is a table T to be initialized containing large object data in the source database, and the database supports a maximum in-line data length of 3900 bytes for large objects:
[0121] CREATE TABLE T(C1 INT,C2 CLOB,C3 CLOB);
[0122] INSERT INTO T(C1,C2,C3) VALUES(1,NULL,'B');
[0123] INSERT INTO T(C1,C2,C3)VALUES(2,NULL,REPLICATE('B',4000));
[0124] INSERT INTO T(C1,C2,C3)VALUES(3,REPLICATE('A',4000),REPLICATE('B',4000));
[0125] Step 301, initialize non-large object data in the first stage, and the source data synchronization system executes the following query statement:
[0126] SELECT ROWID,C1,C2,C3 FROM T;
[0127] Step 302, ext...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com