You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-modeling/projections/2_materialized-views-versus-projections.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ The table below summarizes the key differences between materialized views and pr
28
28
| Operational overhead | Requires explicit target table creation and often manual backfilling. Managing consistency with `UPDATE`/`DELETE` increases complexity. | Projections are automatically maintained and kept-in-sync and generally have a lower operational burden. |
29
29
|`FINAL` query compatibility | Generally compatible, but often require `GROUP BY` on the target table. |**Do not work** with `FINAL` queries. |
30
30
| Lazy materialization | Yes. | Monitor for projection compatibility issues when using materialization features. You may need to set `query_plan_optimize_lazy_materialization = false`|
31
+
| Parallel replicas | Yes. | No. |
31
32
32
33
## Comparing materialized views and projections {#choose-between}
33
34
@@ -62,7 +63,7 @@ You should consider avoiding the use of projections when:
62
63
-**Explicit filtering of materialized data is needed**: Projections do not support `WHERE` clauses in their definition to filter the data that gets materialized into the projection itself.
63
64
-**Non-MergeTree table engines are used**: Projections are exclusively available for tables using the `MergeTree` family of engines.
64
65
-`FINAL` queries are essential: Projections do not work with `FINAL` queries, which are sometimes used for deduplication.
65
-
-Working with large tables that grow quickly:
66
+
-You need [parallel replicas](/deployment-guides/parallel-replicas) as they are not supported with projections.
0 commit comments