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

Reading and writing-in method for real-time database

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

Active Publication Date: 2013-10-02
SHENZHEN COMTOP INFORMATION TECH
View PDF4 Cites 14 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
  • Reading and writing-in method for real-time database
  • Reading and writing-in method for real-time database
  • Reading and writing-in method for real-time database

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 and 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 reading and writing-in method for a real-time database. The writing-in method includes the steps of looking up a target measurement point for writing in data, looking up a target index block for writing in the data in the target measurement point, copying the target index block, generating a target index block copy body which points to a target data block, adding written-in data to the tail of the target data block, updating information of the target index block copy body, adding a writing-lock to the real-time database, shielding reading operation of the real-time database, modifying one index block on the target index block, and making the index of the index block reach the target index block copy body. According to the reading and writing-in method for the real-time database, each operation on the database is independently performed, concurrency accessing can be achieved, and meanwhile working efficiency of the real-time database can be improved.

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 张斌
Owner SHENZHEN COMTOP INFORMATION TECH
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