gkatzioura
gkatzioura

Reputation: 2820

Influxdb x measurements over one measurement with a tag of x values

A web application has 4 types of users. I want to track the response time of each type of user.

Supposing I am not interested on comping the data of the users. So issuing multiple queries on influxdb is not a problem.

What is the outcome of each solution in terms of performance, storage and memory? Which one is the influxdb way?

Upvotes: 0

Views: 238

Answers (1)

ospider
ospider

Reputation: 10421

go with solution 1:

https://docs.influxdata.com/influxdb/v1.6/concepts/schema_and_data_layout/#don-t-encode-data-in-measurement-names

Don’t encode data in measurement names

In general, taking this step will simplify your queries. InfluxDB queries merge data that fall within the same measurement; it’s better to differentiate data with tags than with detailed measurement names.

Upvotes: 1

Related Questions