<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu" -->

---
title: Customer-Facing Analytics on Data That Keeps Changing
description: Analytics on updatable data forces a choice in ClickHouse between fresh but slow reads (FINAL) and fast but wrong materialized views, and PhoenixAI says it...
canonical: https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Customer-Facing Analytics on Data That Keeps Changing | daily.dev
og:description: Analytics on updatable data forces a choice in ClickHouse between fresh but slow reads (FINAL) and fast but wrong materialized views, and PhoenixAI says it...
og:url: https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu
og:image: https://api.daily.dev/og/posts/qF9oOC4fu.png
og:image:alt: Customer-Facing Analytics on Data That Keeps Changing
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Customer-Facing Analytics on Data That Keeps Changing

**[PhoenixAI](https://daily.dev/sources/phoenixai)** · 14 min read · 1 upvotes · 0 comments

## Summary

Analytics on updatable data forces a choice in ClickHouse between fresh but slow reads (FINAL) and fast but wrong materialized views, and PhoenixAI says it avoids both. Its primary key tables resolve updates at write time, and incremental materialized views retract old values. In the vendor's own benchmark with about 10,000 rows per second of writes, P95 was 60 ms against ClickHouse's 887 ms on a single-table query, and 53 ms against 1,622 ms on a join. A correction became visible in 1.6 to 1.8 seconds. For skewed tenants, range distribution beat hash distribution by 2.3x throughput at 41% skew, with small tenants unaffected. The post is a vendor benchmark on synthetic data.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoenixdata.ai/blog/customer-facing-analytics-data-that-keeps-changing>

## Questions this post answers

### Why does ClickHouse ReplacingMergeTree force a choice between fresh, fast and correct results when rows get updated?

Querying the raw table requires FINAL on every read to merge row versions, which in one test took 674 ms versus 336 ms without it on 57 million rows. Incremental materialized views fire per inserted block and cannot subtract the old value, so an update from $500 to $800 shows $1,300. Rebuilding on a schedule shows stale data instead.

_Choosing an analytics engine for mutable data is easier with daily.dev's database coverage._

### How does range distribution compare to hash distribution for multi-tenant tables with one very large tenant?

Range distribution splits a large tenant across tablets on different nodes, while hash distribution places all its rows in one bucket on one node. In PhoenixAI tests at 41% skew, bulk load took 240 s versus 464 s, and concurrent throughput rose 2.3x. At 14% skew the two were even, and small tenants stayed under 30 ms.

_Developers sizing multi-tenant data layouts keep up with these trade-offs on daily.dev._

### How can an incremental materialized view handle updates to a SUM without recomputing everything?

With change data capture enabled, each refresh reads changes carrying both old and new values. For a SUM or COUNT it retracts the old value, adds the new one, joins the delta to the MV by group key, and rewrites only affected groups. A $500 to $800 correction moves a group total by +300 and leaves the line count unchanged.

_Engineers building real-time reporting follow patterns like this on daily.dev._

## Similar posts on daily.dev

- [92x faster queries: How Open Electricity uses ClickHouse to track Australia’s energy transition in real time](https://daily.dev/posts/92x-faster-queries-how-open-electricity-uses-clickhouse-to-track-australia-s-energy-transition-in-r-ce1bdfqje) · ClickHouse · 5 upvotes · 0 comments
- [Switching from PostgreSQL to ClickHouse for Improved Performance and Scalability](https://daily.dev/posts/switching-from-postgresql-to-clickhouse-for-improved-performance-and-scalability-kjtwee69g) · InfoQ · 5 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#clickhouse](https://daily.dev/tags/clickhouse), [#real-time-analytics](https://daily.dev/tags/real-time-analytics), [#multi-tenancy](https://daily.dev/tags/multi-tenancy)

[View this post on daily.dev](https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Customer-Facing Analytics on Data That Keeps Changing","url":"https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu"},"datePublished":"2026-11-28T00:07:28.529Z","dateModified":"2026-11-28T00:07:53.700Z","description":"Analytics on updatable data forces a choice in ClickHouse between fresh but slow reads (FINAL) and fast but wrong materialized views, and PhoenixAI says it...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/25face888b14b5a1d56ea2bd1be1c086?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/25face888b14b5a1d56ea2bd1be1c086?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"PhoenixAI","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"PhoenixAI","logo":"https://media.daily.dev/image/upload/s--Bq1aBkxU--/f_auto,pg_1/v1792548289/squads/3e63b4ca-c949-4689-9853-090017390747?_a=BAMAMicg0","url":"https://daily.dev/squads/phoenixai"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,clickhouse,real-time-analytics,multi-tenancy","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PhoenixAI","item":"https://daily.dev/squads/phoenixai"},{"@type":"ListItem","position":3,"name":"Customer-Facing Analytics on Data That Keeps Changing"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/customer-facing-analytics-on-data-that-keeps-changing-qf9ooc4fu#faq","mainEntity":[{"@type":"Question","name":"Why does ClickHouse ReplacingMergeTree force a choice between fresh, fast and correct results when rows get updated?","acceptedAnswer":{"@type":"Answer","text":"Querying the raw table requires FINAL on every read to merge row versions, which in one test took 674 ms versus 336 ms without it on 57 million rows. Incremental materialized views fire per inserted block and cannot subtract the old value, so an update from $500 to $800 shows $1,300. Rebuilding on a schedule shows stale data instead. Choosing an analytics engine for mutable data is easier with daily.dev's database coverage."}},{"@type":"Question","name":"How does range distribution compare to hash distribution for multi-tenant tables with one very large tenant?","acceptedAnswer":{"@type":"Answer","text":"Range distribution splits a large tenant across tablets on different nodes, while hash distribution places all its rows in one bucket on one node. In PhoenixAI tests at 41% skew, bulk load took 240 s versus 464 s, and concurrent throughput rose 2.3x. At 14% skew the two were even, and small tenants stayed under 30 ms. Developers sizing multi-tenant data layouts keep up with these trade-offs on daily.dev."}},{"@type":"Question","name":"How can an incremental materialized view handle updates to a SUM without recomputing everything?","acceptedAnswer":{"@type":"Answer","text":"With change data capture enabled, each refresh reads changes carrying both old and new values. For a SUM or COUNT it retracts the old value, adds the new one, joins the delta to the MV by group key, and rewrites only affected groups. A $500 to $800 correction moves a group total by +300 and leaves the line count unchanged. Engineers building real-time reporting follow patterns like this on daily.dev."}}]}
```

