当前位置:网站首页>With a total data volume of more than trillions of lines, Yuxi cigarette factory can easily deal with it by correctly selecting the timing database
With a total data volume of more than trillions of lines, Yuxi cigarette factory can easily deal with it by correctly selecting the timing database
2022-07-28 17:25:00 【Taosi data tdengine】

By 2021 end of the year , Yuxi cigarette factory has a complete threshing and redrying line 、 Silk production line 、 Stem wire production line 、 Coiling unit 、 Packaging unit 、 Filter rod forming unit , Annual cigarette production capacity 220 More than 10000 cases , The plant covers an area of 134.04 Thousands of square meters , Thousands of on-the-job employees . factory 22 Benchmarking indicators increased year on year 18 term , among 4 Item ranks first in the industry 、13 Items rank among the top ten in the industry , The number of the top ten indicators ranks second among cigarette factories in the industry 、 It ranks first among the cigarette factories of Yunnan China Tobacco .
Switch back to TDengine after , With the super table mechanism designed from the characteristics of time series data , And the storage engine divided by time , Even the total data volume of a single meter at the level of 100 billion ,TDengine It can also be divided physically and logically , Directly operate the data file of the corresponding time period , Discard invalid search consumption , This solves our biggest problem . In addition, based on efficient column compression design , The storage cost of data has also been significantly reduced .
To promote the construction of high-end and high-end boutique lines , Improve the internal quality of high-end cigarette processing , The pilot project of intelligent manufacturing of high-quality product line is to improve the manufacturing capacity of the production process of high-quality product line 、 Aim at the technological level , Make full use of new technology 、 Cutting edge information means , Create a whole process perception 、 The whole industry chain is coordinated 、 Real time decision-making process 、IOT Integrated cutting-edge production and manufacturing workshops , Ensure the stability and consistency of quality within and between batches in the whole production process . The whole process perception architecture is shown in the figure below :




Create a super table to store the data of all collection points , One collection point, one sub table . Super table adopts single column model , The type of collected value is string .
advantage : Getting a MES Business computing needs n When measuring the full amount of data at each measuring point , You can use one SQL Find out , No need join
shortcoming : Boolean 、 Floating point numbers are also stored as strings , The compression ratio will be affected , And pre calculation cannot be used , You may also need to perform column to row operations on the result set
Create multiple super tables , Single column mode , Create a super table for each data type , One collection point, one sub table , The collection point uses the corresponding type super table according to the corresponding data type .
advantage : The increase or decrease of acquisition points can be flexibly matched , And the numerical collected values have pre aggregation and optimization
shortcoming : Get a MES Business computing needs n When measuring the full amount of data at each measuring point , You need to query from three super tables , Consider using join, But there will still be the work of converting the result set column to row
For each MES Business computing tasks ( For example, product quality calculation ) The involved collection points build a super table ( It may also be an ordinary watch ), Adopt multi column mode .
advantage :MES The queries involved in the business can be found directly from the corresponding table by time period , And the data types of different measuring points can be preserved , Precomputation optimization will also be preserved
shortcoming : The table structure is fixed , Different MES Super tables between business systems may use the same indicators , The data of these indicators will be stored repeatedly . If MES Business computing needs change , You need to modify the table structure , When writing, all acquisition point fields are required to be written at the same time
4. According to the importance of the data and the acquisition frequency, it is stored in sub databases , Separate maintenance of each acquisition and storage program , Mutual interference , Effectively ensure storage stability , The storage failure of one library will not affect other libraries .
Final , According to the above scheme, we divide the database and build the table .


There is a single field 16 KB The big table of , There are also tables with only numeric data in the deposit receipt column :





1. Yes, Super Table voltage_prop Table execution period query .
select * from yjpzsa_phm_opc.voltage_prop where ts >'2022-06-22 10:00:000' and ts <'2022-06-22 15:10:000';



The above is what we use TDengine The landing process and application display of .
This article is from WeChat official account. - TDengine(taosdata_news).
If there is any infringement , Please contact the [email protected] Delete .
Participation of this paper “OSC Source creation plan ”, You are welcome to join us , share .
边栏推荐
- 【ansible】ansible shell 执行远程命令遇到awk 中$符号的问题
- Source code of voice live broadcast app
- Several methods of importing excel file data by C #
- Problem solution of code heartstrings Junior Group (official competition) of Dalian University of Technology (Development Zone campus) in 2021
- Net framework
- 【presto】presto 常用的命令
- Microservice Architecture - service registry and service gateway (6.8) (Reprint)
- net框架
- 2022牛客多校第二场CDE
- 高速电路设计实践——概述
猜你喜欢

valarray数值库学习

Goweb开发之Beego框架实战:第一节 Beego框架介绍

Atcoder regular contest 133 d.range XOR (digital dp+ classification discussion)

Verilog 每日一题(VL14 自动贩售机1--FSM常见题型)

Unity shader realizes water wave effect with noise texture

Gray code and binary conversion and typical examples (4bits gray code counter)

What does the service grid that has been popular for two years bring to microservices? (Reprinted)

How do we do full link grayscale on the database?

Verilog daily question (vl26 simple stopwatch)

【impala】【报错解决】 Impala cannot read or execute the parent directory of dfs.domain.socket.path的解决方法
随机推荐
Soft exam review summary
Goweb开发之Beego框架实战:第一节 Beego框架介绍
利用SQL Server代理作业对数据库进行定时还原
WPF command button transparent style
Selection and application of capacitor in high speed circuit -- detailed explanation
格雷码和二进制的转换及典型例题(4bits格雷码计数器)
List of supplementary questions
What does the service grid that has been popular for two years bring to microservices? (Reprinted)
Unity shader cartoon style rendering
部分情况下Error:(xx, xx) Failed to resolve: xxxxxx解决。
Microservice Architecture - service registry and service gateway (6.8) (Reprint)
The actual combat of the beego framework of goweb development: Section III program execution process analysis
Difference between reconnaissance aircraft and early warning aircraft
How to protect image security during construction
Verilog 每日一题 (VL28 加减计数器)
Analysis of kubernetes service principle
Linear algebra and matrix theory (VIII)
influxdb2的使用
Verilog daily question (simple implementation of VL30 RAM)
Self study examination in April 2021