# Performance Schema events\_waits\_summary\_by\_instance Table

The [Performance Schema](/docs/server/reference/system-tables/performance-schema.md) `events_waits_summary_by_instance` table contains wait events summarized by instance. It contains the following columns:

| Column                  | Description                                                                                                                              |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| EVENT\_NAME             | Event name. Used together with OBJECT\_INSTANCE\_BEGIN for grouping events.                                                              |
| OBJECT\_INSTANCE\_BEGIN | If an instrument creates multiple instances, each instance has a unique OBJECT\_INSTANCE\_BEGIN value to allow for grouping by instance. |
| COUNT\_STAR             | Number of summarized events                                                                                                              |
| SUM\_TIMER\_WAIT        | Total wait time of the summarized events that are timed.                                                                                 |
| MIN\_TIMER\_WAIT        | Minimum wait time of the summarized events that are timed.                                                                               |
| AVG\_TIMER\_WAIT        | Average wait time of the summarized events that are timed.                                                                               |
| MAX\_TIMER\_WAIT        | Maximum wait time of the summarized events that are timed.                                                                               |

The `*_TIMER_WAIT` columns only calculate results for timed events, as non-timed events have a `NULL` wait time.

## Example

```sql
SELECT * FROM events_waits_summary_by_instance\G
...
*************************** 202. row ***************************
           EVENT_NAME: wait/io/file/sql/binlog
OBJECT_INSTANCE_BEGIN: 140578961969856
           COUNT_STAR: 6
       SUM_TIMER_WAIT: 90478331960
       MIN_TIMER_WAIT: 263344
       AVG_TIMER_WAIT: 15079721848
       MAX_TIMER_WAIT: 67760576376
*************************** 203. row ***************************
           EVENT_NAME: wait/io/file/sql/dbopt
OBJECT_INSTANCE_BEGIN: 140578961970560
           COUNT_STAR: 6
       SUM_TIMER_WAIT: 39891428472
       MIN_TIMER_WAIT: 387168
       AVG_TIMER_WAIT: 6648571412
       MAX_TIMER_WAIT: 24503293304
*************************** 204. row ***************************
           EVENT_NAME: wait/io/file/sql/dbopt
OBJECT_INSTANCE_BEGIN: 140578961971264
           COUNT_STAR: 6
       SUM_TIMER_WAIT: 39902495024
       MIN_TIMER_WAIT: 177888
       AVG_TIMER_WAIT: 6650415692
       MAX_TIMER_WAIT: 21026400404
```

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/reference/system-tables/performance-schema/performance-schema-tables/performance-schema-events_waits_summary_by_instance-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
