Batch size for CMDB Query Builder queries
-
- UpdatedAug 1, 2024
- 2 minutes to read
- Xanadu
- Configuration Management
In a base system, a global batch size of 100 is allocated for every Query Builder query run. If needed, you can use a system property to override the default global batch size, or optimize the batch size value per saved query.
Queries can differ widely as they can be configured to query a wide variety of classes. Therefore, the batch size in the base system might not be optimal for every query, and some queries might time out or take a long time to complete. The optimal batch size for running queries depends on system load such as amount of data and number of relationships in your system. Contact Support for assistance in calculating the batch size for your query.
- Query Builder user interface (ad hoc or saved query)
- Query Builder Scriptable API
- Scheduled jobs
- CMDB groups
- The value in the Execution Batch Size field in the Saved Queries table, for a specific saved query. If set, this value applies only to the saved query, and has priority over the global value of 100 and the value of the glide.cmdb.query.batch_size system property.
- The value of the system property glide.cmdb.query.batch_size, if exists, determines globally the batch size that is allocated to all query runs. If you add and set this property, the value applies to all queries, other than saved queries with Execution Batch Size value set.
- A global value of 100, if the previous two options are not configured.
Modifying batch size for queries
- Globally for all queries: By adding (if necessary) and setting the value of the system property glide.cmdb.query.batch_size.
- Per saved query: Set batch size for a specific saved query
Set batch size for a specific saved query
Configure a custom batch size for a CMDB Query Builder saved query that takes a long time to complete or that times out. A custom batch size overrides the global batch size in the base system and the value of the glide.cmdb.query.batch.size system property.
Before you begin
Role required: admin
About this task
Procedure