---
title: "Read the samples and the waits | Grafana Labs"
description: "Record whether every run is slow or only some of them, and which named wait event takes the most time."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Read the samples and the waits

To read how the query behaves over time, complete the following steps. If a tab is empty, skip it and go on.

1. Open the **Query samples** tab.
   
   If the tab is empty, skip the next step.
2. Record what the samples show.
   
   Points are individual query executions. The vertical axis is query duration. A query might usually take 10ms but occasionally take 10 seconds. Certain parameter values might cause slow execution. Performance might degrade during specific time windows.
3. Open the **Wait events** tab.
   
   If the tab is empty, skip the next steps.
4. Switch the chart to the breakdown view.
   
   Open the wait events dropdown and select **Duration of wait events (breakdown)**. The breakdown names each wait event.
5. Record which specific wait events contribute the most time.
   
   The overview chart groups individual wait event types into **IO wait**, **Lock wait**, and **Network wait**. The breakdown uses names such as `Lock:relation` and `IO:DataFileRead` as examples. On PostgreSQL, Network wait is `Client`. Apply fixes based on the dominant wait event type.

You have a record of whether a query might usually take 10ms and occasionally take 10 seconds, and of which specific wait events contribute the most time.
