2200万点的慢查询

Slow query with 22 million points

我有 1 TB(文本数据)。 我在一台机器上安装了 Influxd(240 G RAM,32 CUP) 我只在一次测量、一个标签和 110 个字段中插入了大约 2200 万个点。 当我查询 (select id from ts limit 1) 时,它超过 20 秒,这不好。 那么你能帮我看看我应该怎么做才能有好的表现吗

你的系列数是多少? 也许你的问题来自这里: https://docs.influxdata.com/influxdb/v1.2/concepts/schema_and_data_layout/#don-t-have-too-many-series

Tags containing highly variable information like UUIDs, hashes, and random strings will lead to a large number of series in the database, known colloquially as high series cardinality. High series cardinality is a primary driver of high memory usage for many database workloads