Data storage and query method and device, storage medium and electronic equipment

A technology of data storage and query methods, applied in the field of data analysis, can solve problems such as inefficiency of data query, and achieve the effect of ensuring accuracy and continuity, ensuring high efficiency, and improving efficiency

Active Publication Date: 2022-03-01
北京力控元通科技有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of this, the embodiment of the present invention provides a data storage and query method, device, storage medium and electronic equipment to solve the problem of large amounts of data in the prior art Technical issues with query inefficiencies

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
  • Data storage and query method and device, storage medium and electronic equipment
  • Data storage and query method and device, storage medium and electronic equipment
  • Data storage and query method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0025] The embodiment of the present invention provides a data storage and query method, such as figure 1 As shown, the method includes the following steps:

[0026] Step S101: Obtain the data to be stored and store it in the buffer area of ​​the data to be stored. The data to be stored is real-time data added to any data point in the database. Specifi...

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 discloses a data storage and query method and device, a storage medium and electronic equipment, and the method comprises the steps: obtaining to-be-stored data, and storing the to-be-stored data in a cache region of the to-be-stored data; determining an insertion position of the to-be-stored data in the cache region according to the timestamp of the to-be-stored data and a bisection method; writing the to-be-stored data inserted in the cache region into a memory file, and determining the positions of an index block and a data block in the memory file; determining the position of to-be-stored data in a to-be-stored buffer area in the memory file according to the dichotomy and the read data in the data blocks, and updating the number of the data blocks according to the position; whether residual data exist in the to-be-stored buffer area or not is judged, and a stored memory file is determined according to a judgment result; and performing data query according to the stored memory file. The accuracy and continuity of the data are ensured based on a time sequence reading mode, the index position and the data are stored separately, the reading and storage efficiency is ensured, and the query and storage efficiency is ensured.

Description

technical field [0001] The invention relates to the technical field of data analysis, in particular to a data storage and query method, device, storage medium and electronic equipment. Background technique [0002] With the rapid development of modern technology, intelligent and automated industrial software is becoming more and more important in the industrial field, where a large amount of data will be generated in the daily production of enterprises and needs to be stored, and the time and validity of data Therefore, it is necessary to store the data generated daily in chronological order to ensure the consistency of the data and the accuracy and efficiency of the query. An efficient query algorithm is needed when storing and reading data in the enterprise. Contents of the invention [0003] In view of this, the embodiments of the present invention provide a data storage and query method, device, storage medium and electronic equipment, so as to solve the technical prob...

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): G06F16/2455G06F16/23G06F16/22G06F16/2453G06F16/2458
CPCG06F16/24552G06F16/2322G06F16/2228G06F16/24542G06F16/2474
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
Try Eureka
PatSnap group products