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. 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. Set to -1 to remove the limit.
  • queriesResultLimit.transientLimit Similar to intermediateLimit but across all the intermediate results of the same 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