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

Time series data storage method and device, time series data reading method and device, electronic equipment and storage medium

A time-series data and storage location technology, applied in the database field, can solve the problems of high query delay, increase data storage cost, occupy device storage space, etc., and achieve the effect of overcoming storage space, avoiding query delay, and reducing query delay

Pending Publication Date: 2020-06-19
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventors found that the data storage scheme in the related technology has at least the following problems: First, for the monitoring system or Internet of Things equipment in the Internet, about hundreds of millions of data are generated every day, and the data storage scheme in the related technology is adopted. The solution will occupy a large amount of device storage space and increase the cost of data storage
In actual scenarios, users usually focus on multiple records within a period of time, so multiple query commands need to be executed, resulting in high query delay

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
  • Time series data storage method and device, time series data reading method and device, electronic equipment and storage medium
  • Time series data storage method and device, time series data reading method and device, electronic equipment and storage medium
  • Time series data storage method and device, time series data reading method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

[0041] figure 1 is a flow chart of a method for storing time-series data provided by an embodiment of the present invention, the method can be executed by a storage device for time-series data, wherein the device can be implemented by software and / or hardware, and can generally be integrated in electronic equipment . Such as figure 1 As shown, the method includes:

[0042] Step 110, acquire time series data to be stored, and determine a storage location identifier based on time series data items of the time ser...

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 embodiment of the invention discloses a time series data storage method and device, a time series data reading method and device, electronic equipment and a storage medium. The time series data storage method comprises the steps that time series data to be stored is acquired, a storage position identifier is determined based on time series data items of the time series data, and the time series data comprises the time series data items, values of the time series data items and timestamps; determining a target cache block from a cache block set according to the storage position identifier,and determining a corresponding storage position from the target cache block according to the time sequence data item; and compressing the value and the timestamp of the time series data item by adopting a set compression algorithm, and storing the compressed data in a storage position. By the adoption of the technical scheme, the defect that a large amount of time series data occupy the storage space of equipment is overcome, and the space utilization rate is increased; besides, the compressed data associated with the time is cached, so that the problem of query delay caused by executing thequery instruction for multiple times can be avoided, and the query delay is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of databases, and in particular, to a method, device, electronic device, and storage medium for storing and reading time-series data. Background technique [0002] As the application of the Internet or the Internet of Things becomes more and more widespread, monitoring systems or Internet of Things devices in the Internet generate more and more time-series-based data, which are called time-series data. [0003] In related technologies, hotspot data within several hours are usually stored in memory for caching. For example, by means of a key-value pair, the time-series data item is used as a key to cache the value of the time-series data item. For other time series data that needs to be persisted, it is stored in OpenTSDB (Open time series data base, development time series database), Hbase (Hadoop Database, distributed database), InfluxDB (time series database) or Elasticsearch (no...

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/22G06F16/2458
Inventor 张洪斌
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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