Method for processing database affair, client, and server

A server and database technology, applied in the database field, can solve the problems of complex database storage management and increased overhead

Active Publication Date: 2018-01-12
HUAWEI TECH CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] As can be seen from the above, compared with the traditional lock mechanism, the existing MVCC mechanism avoids reading blocking writing and writing blocking reading, but it still cannot avoid writing blocking writing.
In addition, in the existing MVCC tech

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 processing database affair, client, and server
  • Method for processing database affair, client, and server
  • Method for processing database affair, client, and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0059] figure 1 A schematic diagram of a system architecture 100 of an embodiment of the present invention is shown. The system includes a client (Client) and a server. The server includes a data storage system, a lock-free memory storage engine (Lock-Free Memory Storage Engine) and a remote procedure call (Remote Procedure Call, RPC) module. A database is stored in the data storage system. The lock-free memory storage engine is used to support the ...

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 for processing a database affair, a client and a server. The method includes: allowing the server to receive a database access request for requesting target data and sent by the client; sending a first version of the target data to the client, wherein the first version is a version of the target data which is currently stored in the server, and the server only savesthe last submitted updated version of the target data; receiving an affair submitting request sent by the client who executes a first affair on the basis of the first version, wherein the affair submitting request includes a log for recording data operation of the first affair; modifying the version of the target data stored in the server currently according to the data operation of the first affair if the data operation of the first affair and the version of the target data stored in the server currently do not have data conflicts according to the log, and acquiring a submitted updated version of the target data. The method for processing the database affair can achieve an unlocked affair mechanism, and can lower the complexity of storage management of the database.

Description

technical field [0001] The present invention relates to the technical field of databases, and more specifically, to a method for processing database transactions, a client and a server. Background technique [0002] When multiple users access the database at the same time, multiple transactions will operate on the same data concurrently. If such concurrent operations are not controlled, the problem of accessing incorrect data in the database may occur, destroying the relationship between the transaction and the database. consistency. [0003] Blocking is a very important technique to achieve concurrency control. The so-called blocking means that transaction T sends a request to the system to lock it before operating on a certain data. After locking, transaction T has certain control over the data. Before transaction T releases its lock, other transactions are locked. The data cannot be manipulated. The size of a blocked object is called the blocked granularity. Blocking ...

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
IPC IPC(8): G06F17/30G06F12/08
CPCG06F12/08G06F16/00G06F16/2308G06F16/2379G06F16/219
Inventor 彭勇飞
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products