Time series data storage method and device, server and storage medium

A time-series data and database technology, applied in the database field, can solve the problems of heavy workload and waste of resources in horizontal expansion, and achieve the effect of avoiding hot spots and simple horizontal expansion process

Pending Publication Date: 2020-05-08
ENVISION DIGITAL INT PTE LTD +1
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the traditional time-series database only considers the data storage and compression strategy. When the data increases, it is necessary t

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, server and storage medium
  • Time series data storage method and device, server and storage medium
  • Time series data storage method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] In order to make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0029] The "plurality" mentioned herein means two or more. "And / or" describes the association relationship of the associated object, indicating that there can be three types of relationships, for example, A and / or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0030] In related technologies, time series database software OpenTSDB, InfluxDB, etc. are usually used for the storage of time series data, and different storage strategies are set for data with different storage time limits. Each storage strategy contains multiple storage slices for storing data within a certain time range. Each storage area con...

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 a device, a server and a storage medium, and belongs to the field of databases. The method comprises the steps of obtaining to-be-stored data collected by target equipment; determining an equipment logic primary key corresponding to the target equipment according to the equipment identifier of the target equipment andthe data type of the to-be-stored data; determining a target logic group and a target database according to the device logic primary key and a timestamp corresponding to the to-be-stored data, the target database belonging to the target logic group, and the target logic group including a plurality of databases; and writing the to-be-stored data into a target array in a target database under the target logic group. In the method of the invention, when the data are increased, the horizontal capacity expansion can be completed by only adding one or more logic groups, the historical data do not need to be migrated, the horizontal capacity expansion process is simple, and the data are distributed and stored in the plurality of databases under the target logic group, so that the hotspot problemcaused by centralized operation for a single database is avoided.

Description

technical field [0001] The embodiments of the present application relate to the field of databases, and in particular to a time series data storage method, device, server and storage medium. Background technique [0002] Time-series data refers to the data sequence recorded in chronological order by the same indicator, and a time-series database is a specialized database for storing and managing time-series data. [0003] In related technologies, time-series databases adopt different storage strategies for different data types. Usually, each storage strategy contains multiple storage areas for storing data in different time ranges, and regularly compresses data files through log files in the storage areas. , when reading data, the system finds the hit area according to the instruction, decompresses the relevant data files, merges the required data in sequence, and returns the final result. [0004] However, the traditional time-series database only considers the data storag...

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/2458
CPCG06F16/2474G06F16/22G06F16/2477
Inventor 吴德云王溧宜
Owner ENVISION DIGITAL INT PTE LTD
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