Transaction quotas
-
- UpdatedAug 1, 2024
- 2 minutes to read
- Xanadu
- Platform Performance
Transaction quotas allow you to define a quota policy for different types of transactions. A transaction quota cancels any transaction in violation of the policy and notifies the user of the cancellation.


Typically, administrators set transaction quotas to prevent poorly performing queries and scripts from consuming system resources. This ensures that no transaction consumes enough resources to prevent other transactions from running. Administrators can also view cancellation log messages to identify transactions that might consume excessive resources.
How transaction quotas work
- Obtains a list of active transactions, similar to the list under .
- Cycles through each transaction and checks all quota rules with conditions matching the
transaction. The first occurrence that exceeds any of the quota limitations triggers a
transaction cancellation. If a transaction changes or there is a new quota rule, the Quota
Manager re-evaluates the transaction.Note: The Order field on a quota rule affects the order in which the quota rules are checked. The Quota Manager checks lower-order rules first (for example, order 80 before order 90), but ultimately checks all rules. This might have marginal performance implications, depending on the conditions of the rules involved.
- Cancels the transaction if it has been running longer than the specified quota maximum.
- Logs the running transactions.
- Sleeps until the next heartbeat, which is controlled by the glide.quota.manager.heartbeat system property.
Transaction cancellation examples
Transactions can be canceled for more than one reason. Look for the following indicators.
- maximum execution time exceeded: This message appears when the glide.quota.manager threads cancels the transaction.
- canceled by other transaction: This message appears when the transaction was canceled by the session thread that initially issued it, and not by the glide.quota.manager thread.
- canceled by user request: This message appears when the user clicked the red X button to cancel the running transaction.