ClickHouse's 26.10 release demonstration shows query results stored in a preconfigured filesystem cache surviving a server restart (official release demonstration). That makes disk-backed query caching worth evaluating when repeated analytical queries can reuse results and the team can verify freshness. It is not a reason to enable caching globally: changing query patterns, strict freshness requirements, or inadequate disk monitoring are reasons to hold back.
Suitable: Teams with repeatable reports, costly repeated analysis, and a way to validate result freshness.
Not suitable for broad enablement: Teams that cannot tolerate stale-looking results, cannot isolate cache effects, or lack clear disk-capacity and rollback controls.
This guide is for DBAs responsible for fixed reports and recurring analysis queries.
Data engineers and analysts can use it to assess query repetition and freshness requirements.
Platform operators and SaaS technical leads can judge the storage and operational responsibilities.
Evaluating the ClickHouse 26.10 disk query cache
The release material describes storing query results in a preconfigured filesystem cache; the feature's existence does not establish that every query is eligible or benefits. Use the official ClickHouse 26.10 release notes to confirm the feature's documented behavior, and consult the query-cache documentation for current configuration requirements and eligibility rules.
The decision is about workload fit, not whether a disk cache can be configured. A query is worth testing when it is repeated with sufficiently similar inputs, its result is expensive to regenerate, and its consumers can accept the documented reuse behavior. A report that changes its parameters every time may rarely reuse a result. A customer-facing query that must reflect every write may be inappropriate unless the documented behavior and application requirements have been tested together.
Keep three separate questions in view:
- Reuse: Do the same effective query and inputs recur often enough to make a cache hit plausible?
- Correctness: Does the cached result remain acceptable after the underlying data changes, according to the documented invalidation and eligibility rules?
- Cost: Does cache storage and I/O fit without competing with database data, temporary files, or other workloads?
Do not treat a query that ran faster once as proof of a durable gain. A warm cache, different concurrent load, or unrelated system activity can change elapsed time. Compare the same representative workload with caching enabled and disabled, and evaluate result correctness and resource impact alongside timing.
Assigning decisions by team responsibility
DBAs should own the correctness test. First identify the exact queries proposed for caching, including parameter variations and the tables or data changes that can affect their results. Check the official query-cache documentation for the applicable reuse conditions and invalidation behavior. Then compare results with caching enabled and disabled, including after relevant writes. A matching result for one unchanged test case does not validate every query in the application.
Data engineers and analysts should describe the workload rather than nominate a feature in the abstract. Gather representative report and analysis queries, note how often their inputs vary, and identify which outputs are consumed by people or downstream jobs. Separate stable, recurring analysis from exploratory work where each query is different. If a dashboard needs fresh data within a business-defined interval, record that requirement before testing; do not infer acceptable freshness from cache persistence.
SaaS technical leads should translate freshness into a product decision. Internal analysis may have different expectations from customer-visible reporting. For each workload, state what “current enough” means in business terms and who accepts the risk of a delayed view. If the application cannot tolerate a cached view after relevant writes, leave that path unchanged unless a controlled test demonstrates that the documented behavior meets its requirement.
Platform operators should own the filesystem and rollback plan. Establish where the filesystem cache will live, how its use will be observed, and what conditions trigger disabling it. Keep its capacity budget separate from database data, temporary space, logs, and backups. A directory that shares a device with database files can still compete for the same physical I/O even when its path is distinct.
Infrastructure and procurement owners should use observed cache occupancy and actual storage growth to determine whether the current machine is sufficient. Do not size a disk cache using a guessed universal multiplier or treat it as a backup copy. Cache data is disposable operational state; data durability requires a separate design, such as replication or software redundancy plus backups stored outside the database machine.
Checking query reuse and freshness
Start with a baseline before changing configuration. Select queries from the actual reporting or analysis workload rather than a hand-picked demonstration. Record query text or a safe normalized representation, parameter variation, result expectations, and the data changes that matter to consumers. Avoid collecting sensitive query values in logs or test notes unless the organization has approved that handling.
Use ClickHouse's documented query-log fields to compare executions and identify cache-related evidence available in the installed release. The official system.query_log reference explains the query log schema; verify the exact fields and logging behavior for the deployed version rather than assuming a field exists or has identical semantics across releases. The official system.events reference can also help identify relevant event counters, but counters should be interpreted in context and not mistaken for a complete workload diagnosis.
Run an isolated comparison with caching off and on under equivalent query inputs and representative concurrency. Check:
- Whether the result content matches the uncached result for each test case.
- Whether the expected queries are actually eligible and show cache reuse.
- Whether repeated runs behave consistently, rather than relying on one fast execution.
- Whether disk occupancy and read/write activity remain within the team's operating limits.
- Whether unrelated queries or background work show resource contention.
- Whether restart and cache-fill behavior match the deployment's expectations.
Test cold-start behavior, gradual cache population, and restart behavior separately. The release demonstration documents persistence across a restart for its example, but a local test is still needed to validate the configured filesystem cache, deployment procedure, and result correctness. If the cache is empty after restart, or if the cache is present but the expected queries do not reuse it, investigate configuration and eligibility before widening the test.
For version-sensitive configuration, confirm the installed package version against the official ClickHouse packages page and use documentation that matches the deployed release. The 26.10 release information is a starting point, not a substitute for checking the currently installed maintenance version and its exact configuration requirements.
Planning cache paths and storage
Treat ClickHouse filesystem cache, query-result cache, database data, temporary data, and backups as separate planning items, even if some ultimately share a device. A configured cache path describes where the cache is placed; it does not create extra physical capacity or guarantee isolated I/O. Before deployment, map each path to its underlying device and note which other workloads use that device.
The practical test is whether the cache can grow and be observed without consuming space needed for database operations. Establish a cleanup or eviction policy only as supported by the official configuration for the installed release. Define a disk-space alert threshold from the team's own capacity policy, and specify who responds when the cache approaches that threshold. Do not invent a universal cache-size setting: actual occupancy depends on the query mix and cache configuration.
A cache is not redundancy. The server profile listed on the XFP Cloud machine configuration page includes directly attached NVMe storage and no hardware RAID. The listing describes a configuration with two 1 TB NVMe drives and options for additional NVMe drives; check the current product page before using those figures for procurement. If database data needs disk-level redundancy, plan software RAID or replication separately, and keep backups off the database machine. A cached query result cannot replace either.
Running a controlled rollout
Use this sequence so the decision can be reversed without guessing:
- [ ] Select representative repeated queries and record how their parameters vary.
- [ ] Write down each workload's freshness requirement and the data changes that must become visible.
- [ ] Record an uncached baseline, including result correctness, query-log evidence, disk use, and effects on concurrent work.
- [ ] Configure the filesystem cache and query-result cache using documentation for the installed ClickHouse release; verify the target directory and permissions.
- [ ] Test the same workload with caching enabled, including relevant data changes, different parameters, concurrent work, and restart behavior.
- [ ] Compare results, observed cache reuse, disk occupancy, and impact on other queries before expanding the test.
- [ ] Define a rollback trigger and owner. If results are wrong, freshness is unacceptable, or storage and I/O effects cannot be contained, disable caching for the affected path and return to the baseline configuration.
A rollout should stay limited to queries whose behavior has been checked. If the team cannot explain which queries are eligible, what result changes are visible, and how to return to the uncached path, the test has not yet established a safe deployment decision.
Comparing team readiness and storage plans
Use the comparison below to assign the decision, rather than making one team responsible for every risk.
| Team | Evidence to collect | Decision to make |
|---|---|---|
| DBA | Query eligibility, result comparisons, behavior after relevant writes | Whether the tested queries are correct candidates |
| Data and analytics | Repeat frequency, parameter variation, consumer freshness needs | Which reports merit an isolated test |
| SaaS technical lead | Customer-visible freshness expectations and acceptable behavior | Which application paths must remain uncached |
| Platform operations | Cache path, device mapping, occupancy, I/O monitoring, rollback owner | Whether storage and operations can contain the impact |
| Infrastructure owner | Observed cache use, database growth, available local storage | Whether current resources are adequate or need review |
The storage decision should follow measurements from the team's own test, not an assumed cache size. The XFP Cloud machine listing describes a base arrangement of two directly attached 1 TB NVMe drives, with up to two additional 2 TB NVMe drives available; confirm the current options on the configuration page. These are hardware resources, not a ClickHouse cache-management service, and available capacity must be budgeted across database data, temporary work, and the cache.
| Planning choice | Appropriate when | Main trade-off |
|---|---|---|
| Keep the existing query path | Query inputs vary frequently, freshness is strict, or cache impact is unclear | No cache-related storage or reuse benefit; repeated computation remains |
| Test caching for selected queries | The workload repeats and the team can validate correctness and resource use | Requires query-level testing, monitoring, and a rollback owner |
| Expand local storage resources | Testing shows the cache plan and database storage cannot safely share current capacity | Adds hardware capacity, but does not replace redundancy, backups, or operational planning |
Use the billing and lease-period information to check the applicable billing terms when comparing server resources. The listed server resources can provide dedicated CPU, memory, and local NVMe capacity, but the correct disk layout depends on the database's measured data and cache needs. A physical server does not by itself protect data from disk failure or operator error.
FAQ
How do I configure ClickHouse 26.10 query results to use disk?
Follow the official filesystem-cache and query-cache documentation for the exact configuration supported by your installed maintenance release. Configure the filesystem cache first, then enable and verify query-result caching for eligible queries. Do not copy an unverified setting name or sample from another release. Confirm the cache path, ownership, available space, and observed cache use before testing production traffic.
Does the ClickHouse query cache survive a server restart?
The ClickHouse 26.10 release demonstration describes query results stored in a preconfigured filesystem cache as persisting across a server restart. Treat that as a persistence behavior to verify in your own deployment, not as a guarantee that every cached result remains usable. Test restart behavior, cache state, and result correctness with your installed release and configuration.
Which repeated queries are good candidates for a disk cache?
Start with expensive analytical or reporting queries that recur with the same effective inputs and can tolerate the documented cache behavior. Compare query text and parameter variation, then confirm that the result remains correct when underlying data changes. Queries with constantly changing parameters, strict immediate freshness requirements, or low repeat rates are poor candidates for broad cache enablement.
Can a disk query cache make ClickHouse data appear stale?
It can affect what a user sees if a cached result is reused when the application expects a newer result. Do not infer freshness or invalidation rules from the cache surviving a restart. Check the official documentation for the exact eligibility and invalidation behavior, then test representative writes and reads. Keep strict-freshness queries on their existing path unless testing proves the behavior meets the requirement.
Choosing the next step
For repeated, expensive analysis that can tolerate documented cache behavior, evaluate the ClickHouse 26.10 disk query cache in isolation and keep it only if correctness, cache reuse, disk occupancy, and effects on other workloads all meet the team's requirements. If the current setup is a shared virtual machine or a cloud instance with competing workloads, opaque storage limits, or little control over local disk layout, a dedicated AMD server may be a better fit for sustained database work. XFP Cloud's listed bare-metal resources can be reviewed against the cache and database storage plan, but the team remains responsible for ClickHouse configuration, redundancy, and off-machine backups. Begin with the workload checklist, then compare the current resource requirements with the actual server options before committing.
Questions
How do I configure ClickHouse 26.10 query results to use disk?
Follow the official filesystem-cache and query-cache documentation for the exact configuration supported by your installed maintenance release. Configure the filesystem cache first, then enable and verify query-result caching for eligible queries. Do not copy an unverified setting name or sample from another release. Confirm the cache path, ownership, available space, and observed cache use before testing production traffic.
Does the ClickHouse query cache survive a server restart?
The ClickHouse 26.10 release demonstration describes query results stored in a preconfigured filesystem cache as persisting across a server restart. Treat that as a persistence behavior to verify in your own deployment, not as a guarantee that every cached result remains usable. Test restart behavior, cache state, and result correctness with your installed release and configuration.
Which repeated queries are good candidates for a disk cache?
Start with expensive analytical or reporting queries that recur with the same effective inputs and can tolerate the documented cache behavior. Compare query text and parameter variation, then confirm that the result remains correct when underlying data changes. Queries with constantly changing parameters, strict immediate freshness requirements, or low repeat rates are poor candidates for broad cache enablement.
Can a disk query cache make ClickHouse data appear stale?
It can affect what a user sees if a cached result is reused when the application expects a newer result. Do not infer freshness or invalidation rules from the cache surviving a restart. Check the official documentation for the exact eligibility and invalidation behavior, then test representative writes and reads. Keep strict-freshness queries on their existing path unless testing proves the behavior meets the requirement.
Give Your Database Dedicated AMD Compute
Choose an XFP Cloud physical server with an AMD EPYC 7543P and 32 cores.
From $455 / month