Skip to main content

property Cube.shared_context : MutableMapping[str, bool | int | float | str]

Context values shared by all the users. Context values can also be set at query time, and per user, directly from the UI. The values in the shared context are the default ones for all the users.
  • queriesTimeLimit The number of seconds after which a running query is cancelled and its resources reclaimed. Set to -1 to remove the limit.
  • queriesTimeLimit.max The maximum queriesTimeLimit (in seconds) a user is allowed to set. A request above it is silently clamped down to it. It must be strictly positive and cannot be lower than queriesTimeLimit when that one is defined. When set on its own, it also becomes the default queriesTimeLimit. Leave it unset to impose no ceiling.
  • queriesResultLimit.intermediateLimit The limit number of point locations for a single intermediate result, that is the result of one retrieval for one partition. This works as a safe-guard to prevent queries from consuming too much memory, which is especially useful when going to production with several simultaneous users on the same server. Reaching it means a single retrieval is too wide on its own. Defaults to 1_000_000. Set to -1 to remove the limit. See the Atoti Server docs for what a point location is, and for how to measure the values to give to both limits.
  • queriesResultLimit.transientLimit Similar to intermediateLimit but across all the intermediate results of the same query. Reaching it means the query as a whole is too large, even when no single intermediate result came close to intermediateLimit. Defaults to 10_000_000. Since a cube always carries both values, raising intermediateLimit above this one does not raise it too: this limit remains the effective cap on the query. Set to -1 to remove the limit.
  • queryExecution.disableRangeSharing
    Range sharing can be disabled to prevent heap memory overuse. Range sharing is used when multiple queries with overlapping locations are executed concurrently.

Example