I believe show tag values has a default time range that it will query for tag values. This particular query is pretty resource intensive because it has to query all data within the time range to identify what tag values exist. You could try including a WHERE clause with a custom time range, but just know that this may affect the overall performance of InfluxDB.
show tag values from "weather" with key = "device" where time > now() - 365d
Do you know, in the below example, why SzombathelyHatsoGarazs is there if there is no series with device=SzombathelyHatsoGarazs at the second query in the selected database?
show tag values from "weather" with key = "device";
I’m wondering if all the points with the SzombathelyHatsoGarazs tag value aged out and your indexes haven’t updated yet. You could try manually rebuilding your indexes and see if it makes a difference.
Do you know why indexes weren’t updated or how frequently should they be updated? Data was deleted months ago. I guess this is somehow a bug and manual index rebuild is a workaround for that. Am I right?
I don’t know a ton about how the retention services (the service that removes expired data) interacts with indexes, but I’ve seen cases similar to this in the past. That’s all I really know.