# US 2021/0279240 A1 · Efficient storage method for time series data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279240 A1
- Document ID: US20210279240A1
- Status: Published application
- Kind: A1
- Application number: 17/265,281
- Filed: 2019-07-18
- Published: 2021-09-09
- Earliest claimed: 2018-08-03
- Assignees: Taos Data
- Applicants: Taos Data
- Inventors: Hongze CHENG; Shengliang GUAN; Haojun LIAO; Jianhui TAO
- Web page: https://patentgrep.com/patent/US20210279240A1

## CPC

- G06F 16/2477: {Temporal data queries}
- G06F 11/3452: {Performance evaluation by statistical analysis}
- G06F 16/2255: {Hash tables}
- G06F 16/24573: {using data annotations, e.g. user-defined metadata}
- G06F 16/25: Integrating or interfacing systems involving database management systems
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F 16/9537: Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention discloses an efficient storage method for time-series data, comprising: storing time-series data collected by each data sampler and static attribute data of its data sampler separately; when each time series is stored, based on a unique ID of each time series, storing corresponding time-series data; and when the static attribute data is stored, the static attribute data are stored in another database independently, wherein each data sampler saves one corresponding record in a database storing the static attribute data,. According to the present invention, the storage space can be saved, the processing efficiency and the processing speed can be improved, and the query processing can be flexibly carried out.

## Claims

### Claim 1

An efficient storage method for time-series data, comprising the following steps:
storing time-series data collected by each data sampler and static attribute data of its data sampler separately;
wherein when each time series is stored, based on a unique ID of each time series, storing corresponding time-series data; and
wherein when the static attribute data is stored, the static attribute data are stored in another database independently, wherein each data sampler saves one corresponding record in a database storing the static attribute data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the corresponding time-series data is stored by establishing an independent table, and the ID is used as a key value of the table.

### Claim 3 (depends on 1)

The method of claim 1, wherein the corresponding time-series data are stored by a data node.

### Claim 4 (depends on 1)

The method of claim 1, wherein the static attribute are stored by metadata node.

### Claim 5 (depends on 1)

The method of claim 1, wherein a database of the metadata node has one row of records for each data sampler.

### Claim 6 (depends on 5)

The method of claim 5, wherein each row of records comprises a static attribute data of data sampler and information of data node corresponding to that data sampler.

### Claim 7 (depends on 4)

The method of claim 4, wherein the static attribute data of the metadata node can be added, deleted and/or modified to support a query of various combination conditions.

### Claim 8 (depends on 1)

The method of claim 1, wherein when data is stored, a corresponding metadata node is accessed according to the data sampler ID to obtain corresponding data node information, or the data node information is directly predicted according to the Hash algorithm, so that collected time-series data is written into a corresponding data node.

### Claim 9 (depends on 1)

The method of claim 1, wherein further comprising steps of aggregate query and calculation, specifically as follows:
1) an application calls a system API to provide query condition;
2) a driver sends the query condition to a metadata node;
3) the metadata node filters data samplers meeting the condition according to the query condition, and returns a data sampler ID and a corresponding data node information list to the driver;
4) the driver sends aggregation and calculation request to one or more data nodes, wherein the request comprises data sampler ID saved on one or more data node;
5) the data node processes the time-series data of a data sampler to be processed, performs a first-step aggregation, and returns a result to the driver; and
6) after the driver receives a returned result from each data node, a second-step aggregation operation is performed, and the result is returned to the application.

### Claim 10 (depends on 9)

The method of claim 9, wherein one SDK is provided by the driver for a system, the SDK is compiled with an application program, and for RESTful interface, the driver is one interface of the whole system for external service, and receives and processes HTTP requests.
