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

Method for realizing transaction expiration mechanism in online transaction of graphic database

A technology for online transactions and implementation methods, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., and can solve problems such as conflicts

Active Publication Date: 2013-01-02
BEIJING 21VIANET DATA CENT
View PDF4 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 realizing transaction expiration mechanism in online transaction of graphic database
  • Method for realizing transaction expiration mechanism in online transaction of graphic database
  • Method for realizing transaction expiration mechanism in online transaction of graphic database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] The present invention provides a method for implementing the transaction expiration mechanism in the online transaction of a graph database, which will be described in detail below with reference to the accompanying drawings.

[0054] Graph database overview

[0055] The structure 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 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 programs with the help of existing storage engines, such as traditional relational databases, XML files, and so on.

[0056] DataSet

[0057] DataSet is the logical storage unit of data in the graph database. The data in the graph database and the log...

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 realizing a transaction expiration mechanism in an online transaction of a graphic database. The method comprises the following steps of: checking whether the transaction is expired, if so, storing a record in a waiting queue; calculating a waiting transaction queue; if no waiting transaction exists, waiting, otherwise, extracting every record in the transaction queue in sequence; if the transaction is not expired, committed, rolled back or locked, marking the transaction in expiration state, recovering a data record locked by the transaction, deleting dirty data and deleting the transaction record to complete expiration recovery operation of the transaction; and otherwise, giving the record up and processing a next record. The invention provides a simple and reliable data transaction expiration self-check mechanism. Data recovery operation triggered during self-check has optional breakpoint continuity. After recovery operation is started, data updating can be continually executed by restarting a system after sudden execution interruption from the start of data updating to any completion time point until recovery is completed.

Description

Technical field [0001] The invention relates to a method for implementing a transaction expiration mechanism in an online transaction of a graph database. Background technique [0002] Usually in database systems, transactions are discrete units of work. For example, a database transaction can be a write operation to modify a user's account balance or inventory item. The online transaction processing system collects and processes the data connected to the transaction in real time and changes in the status of shared databases and other files. In online transaction processing, the transaction is executed immediately. It is simple to execute transactions in a single-user, single-database environment, because there are no conflicts 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 "roll-back" mechanism to ensure that the integrity...

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