Unlock instant, AI-driven research and patent intelligence for your innovation.

A data processing method and device

A data processing and data technology, applied in the computer field, can solve problems such as data inconsistency

Active Publication Date: 2021-06-01
BANK OF CHINA
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, because the database has a ROLLBACK mechanism, but the file does not have a ROLLBACK mechanism, so in the process of writing multiple data into the database and storing the file (that is, in the process of multiple COMMIT), there is usually an error due to the batch processing program. The database is rolled back from the current state of writing data to the state of the last unified write success, while the storage file stays in the current state of writing data, which leads to the problem of data inconsistency between the database and the storage file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data processing method and device
  • A data processing method and device
  • A data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0043]figure 1 A data processing method provided by the embodiment of the present application.

[0044]Such asfigure 1 As shown, the method includes:

[0045]S101, in the case of satisfying the data processing conditions, determine the recording file and the database and storage files used to store data in multiple commit processes, the record file for recording each multi-commit process in turn;

[0046]In the present application embodiment, preferred, if the batch handler is inferior, if the batch processing program is incorporated, the multi-COMMIT process will be stopped, and there is usually there is no RollBack mechanism due to the database. Resulting in an inconsistent issue of data in a database and storage files stored in multiple commit processes.

[0047]Accordingly, when the multi-commit process is started, it is determined that the data processing condition is satisfied, and a data processing method provided by the present application embodiment is performed such that the database ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present application provides a data processing method and device. By determining the record file, database and storage file when the data processing conditions are met, the record file is used to record each multiple COMMIT process in turn; create a content It is an empty target file; according to the order in which the data is stored in the storage file, write the data in the storage file to the target file one by one, until all the data in the last successfully completed multi-commit process recorded in the record file Write to the target file, stop writing the data in the storage file to the target file; delete the storage file, determine the target file after writing the data in the storage file as a new storage file, and delete the storage file, The target file after the data in the storage file is written is determined as a new storage file, and the method of starting and executing multiple COMMIT processes ensures the consistency of the data in the database and the storage file during multiple COMMITs.

Description

Technical field[0001]The present invention relates to the field of computers, and more particularly to a data processing method and apparatus.Background technique[0002]During the batch processing program, each data request result in each data request in the data request of this preset pen will be unified, and the data request results of each data request in the data request will be unified to the database and storage files. That is, the unified will process multiple data (data request results) sequentially written to the database and store files, and the data is written to the database and store files, and the next data is written to the database and store file. This process can also be called multiple commit.[0003]However, due to the database has a ROLLBACK mechanism, the file does not have a ROLLBACK mechanism, so in the process of writing multiple data into the database and storage file (ie, in a multi-commit process), there is usually a bulk handler, Make the database roll back ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/23G06F16/22G06F16/16G06F16/13
CPCG06F16/13G06F16/162G06F16/22G06F16/2365
Inventor 全龙军帅红波黄国军陈芬
Owner BANK OF CHINA