Skip to content

Support X-ClickHouse-Summary header #379

@abonander

Description

@abonander

The response from the server includes a X-ClickHouse-Summary header with some potentially useful information:

 {"read_rows":"0","read_bytes":"0","written_rows":"0","written_bytes":"0","total_rows_to_read":"0","elapsed_ns":"662334","memory_usage":"8451671"}

The header becomes even more useful if passing the wait_for_query_end=1 option.

Propose adding:

  • Query::execute_with_summary()
  • Insert::end_with_summary()

that set wait_for_query_end=1 and parse the X-ClickHouse-Summary header from the response.

Otherwise, maybe we just expose the response itself, as it's also possible to set custom headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions