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

B + tree-based read-write conflict resolution method and device and storage medium

A technology for reading and writing conflicts and solutions. It is applied in the field of data processing and can solve problems such as affecting user experience, users being unable to read thumbnails normally, and freezing.

Pending Publication Date: 2019-08-23
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Before the write lock is released, the user cannot read the thumbnail normally, which may cause freeze or read failure, affecting the user experience
With the surge in the number of users of live video platforms, the possibility of such read and write conflicts is increasing

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
  • B + tree-based read-write conflict resolution method and device and storage medium
  • B + tree-based read-write conflict resolution method and device and storage medium
  • B + tree-based read-write conflict resolution method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with several drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0032] For ease of understanding, first explain the technical terms involved in the embodiments of the present invention:

[0033] B+ tree: It is a data structure commonly used in databases and file systems, and is often used to store directory or index information. The B+ tree includes a root node, indexes at all levels, and multiple leaf nodes. The root node is the entry of the B+ tree, and the B+...

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 data processing technology, and provides a B+ tree-based read-write conflict resolution method and device and a storage medium. The method comprises the following steps: constructing an index file for a target data set, wherein the index file adopts a B+ tree structure and records the root node address of a B+ tree twice at the head of the file; when a write operation isexecuted on a target data set, adding a data identifier, a storage address or a deletion identifier corresponding to the write operation to a tail node of the B+ tree, then creating replica father nodes of all layers for the tail node, and after recording child node addresses, sequentially modifying a root node address of the file header by the replica father nodes of all layers; executing a reading operation on a target data set; judging whether the root node addresses of the file header are the same or not, if yes, accessing the root node by any one or default root node address, and accessing the corresponding sub-nodes layer by layer to complete the reading operation, and if not, respectively utilizing the root node address to complete the reading operation by the available root node address.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a B+ tree-based read-write conflict resolution method, device and computer-readable storage medium. Background technique [0002] In the data management system, all transactions access data resources in the database through read and write operations. When multiple transactions access the same data resource at the same time, in order to avoid possible problems such as dirty reads and phantom reads, data Resources are locked. For example, a video live broadcast platform usually captures pictures in the video at a certain frequency or in a predetermined way to generate thumbnails, and displays the thumbnails on the platform home page or live broadcast list. During the process of updating the thumbnails, the thumbnail files will be write-locked. Before the write lock is released, the user cannot read the thumbnail normally, which may cause freeze or read failure, affecting ...

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/22G06F16/23G06F3/06
CPCG06F16/2246G06F16/2315G06F3/061
Inventor 刘洪晔
Owner PING AN TECH (SHENZHEN) 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