Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Lock function implementation method and device and computer medium

An implementation method and computer technology, applied in the field of distributed databases, can solve problems such as database performance degradation and transaction assurance conflicts, and achieve the effects of avoiding the impact of time stamps, improving concurrency performance, and enriching application scenarios

Pending Publication Date: 2022-04-05
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Since the multi-version data of MVCC is persistent data stored in the disk, not in the memory, this ensures that the transaction does not cause conflicts during the concurrent process, and requires a large number of reads and writes to the disk, resulting in performance degradation of the database. Decrease, because access to disk data is much more expensive than access to in-memory data

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
  • Lock function implementation method and device and computer medium
  • Lock function implementation method and device and computer medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to enable those skilled in the art to better understand the solutions of the present invention, the present invention will be further described in detail below in conjunction with specific embodiments. Apparently, the described embodiments are only 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 making creative efforts fall within the protection scope of the present invention.

[0038] A preferred embodiment is given below:

[0039] Such as Figure 1-2 As shown, a method for implementing a lock function in this embodiment has the following steps:

[0040] S1. Establish a lock controller in memory to manage distributed transaction concurrency at a single point. The consistency is guaranteed by the raft synchronization mechanism. After the node goes down, the lock table recovery is realized through transaction ...

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 the technical field of distributed databases, and particularly provides a lock function implementation method which comprises the following steps: S1, establishing a lock controller in a memory to perform single-point management on distributed transaction concurrence, ensuring the consistency through a ramp synchronization mechanism, and implementing lock table recovery through transaction logs redo and undo after node downtime; s2, a lock and an exclusive lock are shared to give the read transaction to obtain the right of the lock so as to block other concurrent read transactions and write transactions; and S3, mapping the write intention of the MVCC into a memory lock table, namely a copy lock, so as to ensure that a lock controller adapts to MVCC timestamp control. Compared with the prior art, the method has the advantages that conflict judgment of a storage layer is improved to a memory, the concurrency performance of the distributed database is improved, the influence of the read request on the timestamp of the write request is avoided, and meanwhile application scenes are greatly enriched.

Description

technical field [0001] The invention relates to the technical field of distributed databases, and specifically provides a lock function realization method, device and computer medium. Background technique [0002] The distributed database based on the percolator transaction model uses multi-version timestamps (MVCCTimestamp Ordering) for concurrency control, and uses write intents to ensure that data consistency is not destroyed when transaction conflicts occur, so as to ensure that the database receives concurrent transaction requests. Ensure transaction consistency and isolation (ACID principles). [0003] For multi-version timestamp control, each write operation will create a version of the data for the data item. When the transaction issues a read operation, the concurrency control manager will select a version from the data item to read, which can ensure Reads are not blocked by writes, and writes are not blocked by reads. When a transaction conflicts, it is necessary...

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): G06F16/23G06F16/242G06F16/27
Inventor 彭荣坤
Owner 上海沄熹科技有限公司
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
Eureka Blog
Learn More
PatSnap group products