You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/influxdb/clustered/query-data/troubleshoot-and-optimize/report-query-performance-issues.md
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -351,10 +351,15 @@ If queries are slow for a specific table, run the following system queries to co
351
351
-[Collect compaction information for the table](#collect-compaction-information-for-the-table)
352
352
-[Collect partition information for multiple tables](#collect-partition-information-for-multiple-tables)
353
353
354
+
To [optimize system queries](/influxdb/clustered/admin/query-system-data/#optimize-queries-to-reduce-impact-to-your-cluster), use `table_name`, `partition_key`, and
355
+
`partition_id` filters.
354
356
In your queries, replace the following:
355
357
356
-
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}: the
357
-
table to retrieve information about
358
+
- {{% code-placeholder-key %}}`TABLE_NAME`{{% /code-placeholder-key %}}: the table to retrieve partitions for
359
+
- {{% code-placeholder-key %}}`PARTITION_ID`{{% /code-placeholder-key %}}: a [partition ID](/influxdb/clustered/admin/query-system-data/#retrieve-a-partition-id) (int64)
360
+
- {{% code-placeholder-key %}}`PARTITION_KEY`{{% /code-placeholder-key %}}: a [partition key](/influxdb/clustered/admin/custom-partitions/#partition-keys)
361
+
derived from the table's partition template.
362
+
The default format is `%Y-%m-%d` (for example, `2024-01-01`).
358
363
359
364
#### Collect table information
360
365
@@ -368,13 +373,32 @@ WHERE table_name = 'TABLE_NAME';
368
373
369
374
#### Collect compaction information for the table
370
375
371
-
{{% code-placeholders "TABLE_NAME" %}}
376
+
Query the `system.compactor` table to collect compaction information--for example, run one of the following
0 commit comments