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

# QueryCubeDefinition

<span id="atoti.QueryCubeDefinition" />

> atoti.QueryCubeDefinition(<br />
>     *cluster*: HasIdentifier\[ClusterIdentifier] | ClusterIdentifier,<br />
>     \*,<br />
>     *distributing\_levels*: [Set](https://docs.python.org/3/library/collections.abc.html#collections.abc.Set)\[[tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[[str](https://docs.python.org/3/library/stdtypes.html#str), [str](https://docs.python.org/3/library/stdtypes.html#str), [str](https://docs.python.org/3/library/stdtypes.html#str)]] = `frozenset({})`,<br />
>     *allow\_data\_duplication*: [bool](https://docs.python.org/3/library/functions.html#bool) = `False`,<br />
> )

The definition to create a [`QueryCube`](./atoti.distribution.QueryCube#atoti.QueryCube).

### Attributes

<h4 id="atoti.QueryCubeDefinition.cluster">
  *cluster*
</h4>

Cluster joined by the query cube.

<h4 id="atoti.QueryCubeDefinition.distributing_levels">
  *distributing\_levels*
</h4>

The [`distributing_levels`](./atoti.distribution.QueryCube.distributing_levels#atoti.QueryCube.distributing_levels).

<h4 id="atoti.QueryCubeDefinition.allow_data_duplication">
  *allow\_data\_duplication*
</h4>

Whether to allow multiple data cubes in the same cluster to share some members in the [`distributing_levels`](#atoti.QueryCubeDefinition.distributing_levels).

If `True`, the priority of each data node can be configured when calling [`atoti.Session.create_cube()`](./atoti.Session.create_cube#atoti.Session.create_cube).

See the [Atoti Server docs](https://docs.activeviam.com/products/atoti/server/6.2/docs/distributed/data_overlap/) for more information.
