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

Method for implementing transaction rollback mechanism in online transaction of graphic database

A technology for online transactions and implementation methods, which is applied in the fields of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as conflicts, and achieve the effect of a reliable data rollback mechanism

Active Publication Date: 2013-01-02
BEIJING 21VIANET DATA CENT
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that when multiple users try to change the same block of data at the same time, there is a conflict problem

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 for implementing transaction rollback mechanism in online transaction of graphic database
  • Method for implementing transaction rollback mechanism in online transaction of graphic database
  • Method for implementing transaction rollback mechanism in online transaction of graphic database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050]The invention proposes a method for realizing the transaction rollback mechanism in the online transaction of the graph database, which will be described in detail below in conjunction with the accompanying drawings.

[0051] Graph Database Overview

[0052] The architecture of the graph database of the present invention can be divided into three layers from top to bottom. Such as figure 1 As shown, the top layer is the organization and realization of various conceptual objects in the graphic data. The middle layer is an abstract data physical storage interface layer, which abstracts the physically stored data into several data sets DataSet. The bottom layer is the physical storage implementation layer, which is implemented by the program with the help of existing storage engines, such as traditional relational databases, XML files, and so on.

[0053] DataSet (data set)

[0054] DataSet is the logical storage unit of data in the graph database. The data in the graph...

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 relates to a method for implementing a transaction rollback mechanism in an online transaction of a graphic database. The method comprises the following steps of: calling an application program interface (API) of graphic data by a client program and transmitting a transaction number to be submitted; checking whether a transaction exists, the transaction is overdue, the transaction is submitted, the transaction is rolled back and the transaction is locked and marking a transaction rollback state; restoring a data record of the locking of the transaction; deleting dirty data; and deleting the transaction record. By a simple and reliable data rollback mechanism, a third state between a rollback and a non rollback state cannot appear. The data operation has continuity of any broken point, namely after transaction rollback operation is called, if accident performing is interrupted at any time point from start to finish of the data restoration, the performing can be continued until the restoration is finished after the system is restarted.

Description

technical field [0001] The invention relates to a method for realizing a transaction rollback mechanism in a graph database online transaction. Background technique [0002] Typically in database systems, a transaction is a discrete unit of work. For example, a database transaction could be a write operation that modifies a user's account balance or inventory item. OLTP collects and processes transaction-linked data and changes in the status of shared databases and other files in real time. In online transaction processing, transactions are executed immediately. Executing transactions in a single-user, single-database environment is simple because there are no conflict issues or the need for synchronization between databases. In a distributed environment, write operations often occur in parallel on multiple database servers. Such concurrent transaction processing requires a "rollback" mechanism to ensure the integrity of the database in the event of a system failure duri...

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): G06F17/30G06F9/46
Inventor 陈升于洪方井卫军蒋建平陈晞刘健
Owner BEIJING 21VIANET DATA CENT