Where the open-source database community meets: Secure your spot at PerconaLive.com
Back to all talks

A Slow Query Is a Symptom: Finding the Real Cause with SQL Observability

Event: Open Source Observability Day (VIRTUAL) 2026

Dates: October 15, 2026 – October 16, 2026

Presentation: October 16, 2026

Link: On event website

Speaker: Sonia Valeja

A slow query does not always mean that the SQL statement is poorly written. Database teams frequently treat a slow query as an isolated SQL problem: capture the statement, inspect its execution plan and add an index. In production environments, however, the query text may be only one part of the story.

A query can run slowly because it is blocked by another transaction, processing more data than usual, using an unexpected execution plan, spilling to temporary storage, competing for limited resources or waiting on slow infrastructure. A normally fast query can also become the largest performance problem when its execution frequency suddenly increases.

This session presents an observability-driven approach to investigating slow and long-running SQL queries. Using PostgreSQL examples, it demonstrates how query statistics, execution plans, wait events, locks, logs and operating-system metrics can be correlated to distinguish symptoms from root causes.

Attendees will learn how to determine whether the problem is the SQL statement, the execution plan, workload concurrency or infrastructure.

Event

Speaker card

A Slow Query Is a Symptom: Finding the Real Cause with SQL Observability

Speakers

Sonia Valeja

Sonia Valeja

Sonia is data enthusiast who started working in PostgreSQL in the year 2012. Since she has performed multiple migrations from Oracle to PostgreSQL, she learnt Oracle while working with PostgreSQL. She is a SME for beginner-level course on Open Source Database-PostgreSQL in one of her previous company. She has conducted multiple trainings on PostgreSQL for freshers as well as experienced professionals. Also, she has been an active participant at pgConf and has given lightning talk. She has worked extensively in Taxation as well as manufacturing based projects for Indian as well as African sub- continent.

View full profile ›