/plushcap/analysis/cockroach-labs/how-to-identify-and-tune-a-problematic-query-with-sql-explain

How to Identify and Tune a Problematic Query with SQL EXPLAIN

What's this blog post about?

This article provides a comprehensive guide on how to identify and tune problematic queries using SQL EXPLAIN. It covers the following steps: 1. Tagging your application when connecting to the database for easy identification of problematic queries. 2. Identifying slow queries from your application using various methods such as DB console, slow query log, and plan attributes. 3. Introspecting the query plan and tuning performance with EXPLAIN. 4. Finding performance bottlenecks with EXPLAIN ANALYZE. The article also provides examples of how to use these tools in CockroachDB, a distributed SQL database.

Company
Cockroach Labs

Date published
July 21, 2021

Author(s)
Kevin Ngo

Word count
1355

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.