InfluxDb系列:幾個關鍵概念(主要是和關系數據庫做對比)


https://docs.influxdata.com/influxdb/v0.9/concepts/key_concepts/ 
#,measurement,就相當於關系數據庫中的table,他就是tag,field,time的容器;
#,對於influxDb的measurement來說,field是必須的,並且不能根據field來排序;
#,Tag是可選的,tag可以用來做索引,tag是以字符串的形式存放的;
#,retention policy,保留策略,用於決定要保留多久的數據,保存幾個備份,以及集群的策略等;
#,series, series  is the collection of data that share a retention policy, measurement, and tag set,
比如對於下面這個measurement,
name:  census
-————————————
time                                    location     scientist        butterflies     honeybees
2015-08-18T00:00:00Z   1                 langstroth    12                   23
2015-08-18T00:00:00Z   1                 perpetua      1                     30
2015-08-18T00:06:00Z   1                 langstroth    11                   28
2015-08-18T00:06:00Z     1                   perpetua       3                       28
2015-08-18T05:54:00Z   2                 langstroth    2                     11
2015-08-18T06:00:00Z   2                 langstroth    1                     10
2015-08-18T06:06:00Z   2                 perpetua      8                     23
2015-08-18T06:12:00Z   2                 perpetua      7                     22

他有下面這四個series
Arbitrary series number Retention policy Measurement Tag set
series 1 default census location = 1,scientist = langstroth
series 2 default census location = 2,scientist = langstroth
series 3 default census location = 1,scientist = perpetua
series 4 default census location = 2,scientist = perpetua

這個其實比較好理解,其實一個series就是一個測點,或者說一條曲線,那么retention policy, measurement, tagset就共同組成了一個定位測點序列的唯一標識。
Understanding the concept of a series is essential when designing your  schema  and when working with your data in InfluxDB.
#,point,就是某個series的同一個時刻的多個field的value,就組成了一個point;其實就是一般曲線上的一個點。
#,InfluxDb不需要做schema定義,這意味着你可以隨意的添加 measurements, tags, and fields at any time,















免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM