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

Real-time database read and write methods

A database and data block technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem that the real-time database cannot support concurrent reading and writing, achieve the effect of reducing the locking time and improving work efficiency

Active Publication Date: 2017-10-03
SHENZHEN COMTOP INFORMATION TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention aims at the defect that the existing real-time database cannot support concurrent reading and writing, and provides a method for writing and reading the real-time database to solve the above-mentioned defects

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
  • Real-time database read and write methods
  • Real-time database read and write methods
  • Real-time database read and write methods

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0035] combine first figure 1 with figure 2 , illustrating the data structure of the real-time database in the present invention. Such as figure 1 Shown is the data structure diagram of the real-time database of the present invention. In the real-time database, each data is divided into data blocks for storage. Each data block is pointed to by an index block, and multiple adjacent index blocks are connected in series to form an index chain, which belongs to the corresponding measuring point, such as measuring point 1, measuring point 2...N measuring point. When it is necessary to access the real-time database, such as reading, writing and other operations, first find the corresponding measuring point, and then start from the measuring point and query down the index chain until the target index block is found.

[0036] In order to ensure...

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 writing and reading a real-time database, wherein the writing method includes searching for a target measuring point for writing data; searching for a target index block for writing data under the target measuring point; copying the target index block to generate a target Index block copy body, the index block copy body points to the target data block; add the written data to the end of the target data block; update the target index block copy body information; add a write lock to the real-time database to shield the read operation of the real-time database; modify The previous index block of the target index block, making it index to the copy of the target index block. The implementation of the real-time database reading and writing method of the present invention is independent of various operations of the database, can realize parallel access, and can also improve the working efficiency of the real-time database.

Description

technical field [0001] The present invention relates to real-time database technology, more specifically, relates to a real-time database reading and writing method. Background technique [0002] The real-time database has the characteristics of large number of measuring points, large data storage capacity, high writing speed, and frequent query requests. It is the basic database used to store process historical data in industrial monitoring systems. In existing real-time databases, memory data only supports concurrent read operations, that is, multi-point reads, but does not support concurrent read and write operations. The concurrent access capability of memory data reduces the overall efficiency. Contents of the invention [0003] Aiming at the defect that the existing real-time database cannot support concurrent reading and writing, the present invention provides a method for writing and reading the real-time database to solve the above-mentioned defect. [0004] One...

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/30
Inventor 张斌
Owner SHENZHEN COMTOP INFORMATION TECH
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