> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/system-tables/performance-schema/performance-schema-tables/performance-schema-events_stages_summary_by_account_by_event_name-table.md).

# Performance Schema events\_stages\_summary\_by\_account\_by\_event\_name Table

The table lists stage events, summarized by account and event name.

It contains the following columns:

| Column           | Description                                                               |
| ---------------- | ------------------------------------------------------------------------- |
| USER             | User. Used together with HOST and EVENT\_NAME for grouping events.        |
| HOST             | Host. Used together with USER and EVENT\_NAME for grouping events.        |
| EVENT\_NAME      | Event name. Used together with USER and HOST for grouping events.         |
| COUNT\_STAR      | Number of summarized events, which includes all timed and untimed events. |
| SUM\_TIMER\_WAIT | Total wait time of the timed summarized events.                           |
| MIN\_TIMER\_WAIT | Minimum wait time of the timed summarized events.                         |
| AVG\_TIMER\_WAIT | Average wait time of the timed summarized events.                         |
| MAX\_TIMER\_WAIT | Maximum wait time of the timed summarized events.                         |

## Example

```sql
SELECT * FROM events_stages_summary_by_account_by_event_name\G
...
*************************** 325. row ***************************
          USER: NULL
          HOST: NULL
    EVENT_NAME: stage/sql/Waiting for event metadata lock
    COUNT_STAR: 0
SUM_TIMER_WAIT: 0
MIN_TIMER_WAIT: 0
AVG_TIMER_WAIT: 0
MAX_TIMER_WAIT: 0
*************************** 326. row ***************************
          USER: NULL
          HOST: NULL
    EVENT_NAME: stage/sql/Waiting for commit lock
    COUNT_STAR: 0
SUM_TIMER_WAIT: 0
MIN_TIMER_WAIT: 0
AVG_TIMER_WAIT: 0
MAX_TIMER_WAIT: 0
*************************** 327. row ***************************
          USER: NULL
          HOST: NULL
    EVENT_NAME: stage/aria/Waiting for a resource
    COUNT_STAR: 0
SUM_TIMER_WAIT: 0
MIN_TIMER_WAIT: 0
AVG_TIMER_WAIT: 0
MAX_TIMER_WAIT: 0
```

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

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