Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for guaranteeing database modification permanency

A data modification and database technology, applied in the database field to achieve the effect of speeding up the execution process and ensuring permanence

Active Publication Date: 2020-04-17
YUSUR TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a method for ensuring the permanent modification of a hardware database, a method for ensuring the permanent modification of a database system, an electronic device and a computer-readable storage medium, so as to solve one or multiple questions

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
  • Method and device for guaranteeing database modification permanency
  • Method and device for guaranteeing database modification permanency
  • Method and device for guaranteeing database modification permanency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0029] First, take MySQL's binlog as an example to analyze and explain the shortcomings of write-ahead logging. Binlog has three formats, namely Statement, Row and Mixed.

[0030] Statement format: Every record that modifies data will be recorded in the binlog. The disadvantage is that there are security risks, which may lead to master-slave inconsistency; some system functions with uncertain factors cannot be copied accurately or cannot be copied.

[0031] Row format: does not record the context-related information of the SQL statement, only saves the record that ha...

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 invention provides a method and a device for guaranteeing database modification permanency. The method for ensuring the permanent modification of the hardware database comprises the following steps of: under the condition that the transaction state of the latest first transaction recorded in the log of the hardware database is execution completion, comparing the log of the hardware database with an external log used for recording a submitted transaction to obtain a record of a second transaction which exists in the external log used for recording the submitted transaction but does not exist in the log of the hardware database; recording the record content of the second transaction read from the log for recording the submitted transaction in the log of the hardware database, and recording the transaction state of the second transaction in the log of the hardware database according to the condition that the hardware database executes the second transaction; wherein the second transaction comprises data modification. By means of the method, it can be ensured that the log recording condition of the database is consistent with the execution condition of the database, and therefore permanence of database modification is ensured.

Description

technical field [0001] The present invention relates to the field of database technology, in particular to a method and device for ensuring the permanence of database modification, more specifically, to a method for ensuring the permanence of hardware database modification, and a method for ensuring the permanence of database system modification Methods, electronic devices, and computer-readable storage media. Background technique [0002] A database is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application. The storage space of the database is very large, and it can store millions, tens of millions, or even hundreds of millions of data. Today's world is an Internet world full of data, filled with a lot of data. With the development of the Internet, the importance of the database is becoming more and more obvious. [0003] When the system becomes more and...

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 Applications(China)
IPC IPC(8): G06F16/23G06F16/242
CPCG06F16/2358G06F16/2433
Inventor 鄢贵海王强江树浩
Owner YUSUR TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products