---
title: Troubleshoot and optimize queries
description: Troubleshoot errors and optimize performance for SQL and InfluxQL queries in InfluxDB. Use observability tools to view query execution and metrics.
url: https://docs.influxdata.com/influxdb3/clustered/query-data/troubleshoot-and-optimize/
estimated_tokens: 489
publisher: InfluxData
canonical: https://docs.influxdata.com/influxdb3/clustered/query-data/troubleshoot-and-optimize/
date: '2025-01-13T07:21:11-07:00'
lastmod: '2025-01-13T07:21:11-07:00'
---

Troubleshoot errors and optimize performance for SQL and InfluxQL queries in InfluxDB Clustered.
Use observability tools to view query execution and metrics.

### [Optimize queries](/influxdb3/clustered/query-data/troubleshoot-and-optimize/optimize-queries/)

Optimize queries to improve performance and reduce their memory and compute (CPU) requirements in InfluxDB. Learn how to use observability tools to analyze query execution and view metrics.

### [Query timeout best practices](/influxdb3/clustered/query-data/troubleshoot-and-optimize/query-timeout-best-practices/)

Learn how to set appropriate query timeouts to balance performance and resource protection.

### [Troubleshoot queries](/influxdb3/clustered/query-data/troubleshoot-and-optimize/troubleshoot/)

Troubleshoot SQL and InfluxQL queries in InfluxDB.

### [Analyze a query plan](/influxdb3/clustered/query-data/troubleshoot-and-optimize/analyze-query-plan/)

Learn how to read and analyze a query plan to understand how a query is executed and find performance bottlenecks.

### [Understand and troubleshoot Flight responses](/influxdb3/clustered/query-data/troubleshoot-and-optimize/flight-responses/)

Understand responses and troubleshoot errors encountered when querying InfluxDB with Flight+gRPC and Arrow Flight clients.

### [Report query performance issues](/influxdb3/clustered/query-data/troubleshoot-and-optimize/report-query-performance-issues/)

Follow guidelines to help InfluxData engineers troubleshoot and resolve query performance issues.

#### Related

* [Query data with SQL](/influxdb3/clustered/query-data/sql/)
* [Query data with InfluxQL](/influxdb3/clustered/query-data/influxql/)

[query](/influxdb3/clustered/tags/query/)[performance](/influxdb3/clustered/tags/performance/)[observability](/influxdb3/clustered/tags/observability/)[errors](/influxdb3/clustered/tags/errors/)[sql](/influxdb3/clustered/tags/sql/)[influxql](/influxdb3/clustered/tags/influxql/)
