Skip to main content
Skip to main content

Cache types

When performing queries, ClickHouse uses different caches to speed up queries and reduce the need to read from or write to disk.

The main cache types are:

  • mark_cache — Cache of marks used by table engines of the MergeTree family.
  • uncompressed_cache — Cache of uncompressed data used by table engines of the MergeTree family.
  • Operating system page cache (used indirectly, for files with actual data).

There are also a host of additional cache types:

Should you wish to drop one of the caches, for performance tuning, troubleshooting, or data consistency reasons, you can use the SYSTEM DROP ... CACHE statement.