> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# system.asynchronous_inserts

> System table containing information about pending asynchronous inserts in queue.

> [!NOTE]
>
> **Querying in ClickHouse Cloud**
>
> The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the `clusterAllReplicas` function. See [here](https://clickhouse.com/docs/reference/system-tables/overview.md#system-tables-in-clickhouse-cloud) for further details.

## Description

Contains information about pending asynchronous inserts in queue.

## Columns

* `query` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Query text.
* `database` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Database name.
* `table` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Table name.
* `format` ([String](https://clickhouse.com/docs/reference/data-types/string.md)) — Format name.
* `first_update` ([DateTime64(6)](https://clickhouse.com/docs/reference/data-types/datetime64.md)) — First insert time with microseconds resolution.
* `total_bytes` ([UInt64](https://clickhouse.com/docs/reference/data-types/int-uint.md)) — Total number of bytes waiting in the queue.
* `entries.query_id` ([Array(String)](https://clickhouse.com/docs/reference/data-types/array.md)) — Array of query ids of the inserts waiting in the queue.
* `entries.bytes` ([Array(UInt64)](https://clickhouse.com/docs/reference/data-types/array.md)) — Array of bytes of each insert query waiting in the queue.

## Example

```sql title="Query" theme={null}
SELECT * FROM system.asynchronous_inserts LIMIT 1 \G;
```

```text title="Response" theme={null}
Row 1:
──────
query:            INSERT INTO public.data_guess (user_id, datasource_id, timestamp, path, type, num, str) FORMAT CSV
database:         public
table:            data_guess
format:           CSV
first_update:     2023-06-08 10:08:54.199606
total_bytes:      133223
entries.query_id: ['b46cd4c4-0269-4d0b-99f5-d27668c6102e']
entries.bytes:    [133223]
```

## See also

* [system.query\_log](https://clickhouse.com/docs/reference/system-tables/query_log.md) — Description of the `query_log` system table which contains common information about queries execution.
* [system.asynchronous\_insert\_log](https://clickhouse.com/docs/reference/system-tables/asynchronous_insert_log.md) — This table contains information about async inserts performed.
