Learn Labs
Storage Engine

Self-test

Check your understanding

Self-test6 questions

—/6
  1. Why did 1,000 single-row INSERTs create 1,000 parts, and what eventually reduced them to one?

  2. What happens at parts_to_delay_insert and at parts_to_throw_insert, and why does ClickHouse slow inserts before refusing them?

  3. Batches of 1,000 rows gave 0.5 M rows/s and batches of 1,000,000 gave 5.7 M rows/s. Where does the difference come from?

  4. Why can a nearly full disk stop merges before it stops inserts?

  5. What decides how many parts a partitioning scheme produces per insert, and why is PARTITION BY toYYYYMMDD(ts) risky for inserts that span many days?

  6. Design question

    An application inserts one event per HTTP request, 2,000 requests a second, from 40 pods. Design the ingest path.