Sameer
Sameer

Reputation: 519

how to define relationship between InfluxDB measurements (tables)

Need some explaination,

Meanwhile, InfluxDB provide us Tag keys (indexed), should we use these to define relationship between tables or measurements?

Upvotes: 1

Views: 2937

Answers (1)

Jan Garaj
Jan Garaj

Reputation: 28626

InfluxDB is not relational DB = no primary/foreign keys, no joins of measurements, etc. In theory you can use tags as a work around, but they are designated for data with low cardinality = if you have many records with unique ID tag, then you will need a lot of memory.

I recommend to read about InfluxDB schema/data layout and review if InfluxDB is really good DB for your relational DB replacement. Generally, it is not a good idea.

Upvotes: 3

Related Questions