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

# materialize_projections_* MergeTree table settings

> ClickHouse MergeTree table settings in the materialize_projections_* generated group.

These settings are available in [system.merge\_tree\_settings](https://clickhouse.com/docs/reference/system-tables/merge_tree_settings.md) and are autogenerated from ClickHouse source.

## materialize\_projections\_on\_insert

Type

Bool

Default

1

When enabled, INSERTs create new parts with projections.
Otherwise, they can be created by explicit [MATERIALIZE PROJECTION](https://clickhouse.com/docs/reference/statements/alter/projection.md#materialize-projection)
or during merges with [materialize\_projections\_on\_merge](https://clickhouse.com/docs/reference/settings/merge-tree-settings/materialize-projections.md#materialize_projections_on_merge).

## materialize\_projections\_on\_merge

Type

Bool

Default

0

When enabled, a merge rebuilds a projection that is missing from all of its source parts (for example because they were
inserted with `materialize_projections_on_insert = 0`), so the merged part has the projection.

Merges still only combine parts that share the same set of projections. To backfill a projection to all existing parts,
use an explicit [MATERIALIZE PROJECTION](https://clickhouse.com/docs/reference/statements/alter/projection.md#materialize-projection). Projections
are also created during INSERTs with [materialize\_projections\_on\_insert](https://clickhouse.com/docs/reference/settings/merge-tree-settings/materialize-projections.md#materialize_projections_on_insert).
