Rate This Document
Findability
Accuracy
Completeness
Readability

Optimizing Asynchronous I/O Reads

Purpose

Asynchronous I/O allows a program to execute other tasks immediately after initiating an I/O operation. This prevents threads from idling while waiting for I/O completion, thereby improving CPU utilization and overall throughput.

Procedure

  1. Log in to ClickHouse client.
    1
    clickhouse -m -n
    
  2. Set asynchronous I/O read.
    1
    2
    set preferred_block_size_bytes=2000000;
    set allow_asynchronous_read_from_io_pool_for_merge_tree=true;
    

  3. Exit the ClickHouse client.
    1
    quit;