alex-plekhanov commented on code in PR #13113: URL: https://github.com/apache/ignite/pull/13113#discussion_r3201629260
########## docs/_docs/SQL/sql-calcite.adoc: ########## @@ -121,6 +121,62 @@ QUERY_ENGINE=CALCITE ---- -- +== Memory Quotas [[memory-quotas]] + +The Calcite-based SQL engine can track and limit heap memory accounted by Calcite query execution operators. +This is useful for protecting a server node from a single large query or from many concurrent memory-heavy queries. + +Two quotas can be configured in `CalciteQueryEngineConfiguration`: + +* `globalMemoryQuota` - a per-node heap memory quota for all Calcite SQL queries running on the node. +* `queryMemoryQuota` - a per-node heap memory quota for each Calcite SQL query running on the node. + +Both quotas are disabled by default (`0`). +The quota values are specified in bytes. +If a quota is exceeded, the query fails with an `IgniteSQLException`. Review Comment: `with and exception` (`IgniteSQLException` is a private API exception, we've discovered it recently) ########## docs/_docs/SQL/sql-calcite.adoc: ########## @@ -121,6 +121,62 @@ QUERY_ENGINE=CALCITE ---- -- +== Memory Quotas [[memory-quotas]] + +The Calcite-based SQL engine can track and limit heap memory accounted by Calcite query execution operators. +This is useful for protecting a server node from a single large query or from many concurrent memory-heavy queries. + +Two quotas can be configured in `CalciteQueryEngineConfiguration`: Review Comment: Two types? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
