---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Batch size for queries

# Batch size for CMDB Query Builder queries {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

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.  
Batch size is applicable and behaves the same in all query run scenarios, regardless of how the run was initiated:

* Query Builder user interface (ad hoc or saved query)
* [Query Builder Scriptable
  API](https://www.servicenow.com/docs/access?context=CMDBQueryBuilderAPI&version=australia&pubname=australia-api-reference&ft:locale=en-US)
* Scheduled jobs
* [CMDB groups](https://servicenow-prod.fluidtopics.net/d6c5UgXcp9tHQuuOLIU6WA#cmdb-groups "A CMDB group is a collection of CIs that lets you apply CI actions collectively to all the CIs that are members in the group.")
{#batch-size-query__ul_ewq_fsv_3nb}  
The batch size for query runs is allocated in the following priority order:

1. 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](https://servicenow-prod.fluidtopics.net/qhiZv7XHhLymWKGv8ZCyAg "Set property values to configure query processing.") system property.
2. The value of the system property [glide.cmdb.query.batch_size](https://servicenow-prod.fluidtopics.net/qhiZv7XHhLymWKGv8ZCyAg "Set property values to configure query processing."), 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.
3. A global value of 100, if the previous two options are not configured.
{#batch-size-query__ol_t5d_yg5_knb}

## Modifying batch size for queries {#batch-size-query__section_jvv_wgw_3nb}

If you are experiencing performance problems when running queries, you can modify the batch size value:

* Globally for all queries: By adding (if necessary) and setting the value of the system property [glide.cmdb.query.batch_size](https://servicenow-prod.fluidtopics.net/qhiZv7XHhLymWKGv8ZCyAg "Set property values to configure query processing.").
* Per saved query: [Set batch size for a specific saved query](https://servicenow-prod.fluidtopics.net/jBDHjuHJ8KS4CBcinIpKqQ#set-batch-size-for-specific-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.").
{#batch-size-query__ul_qv3_lpx_3nb}

## Set batch size for a specific saved query {#ariaid-title2}

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.

### Vorbereitungen

Role required: sn_cmdb_admin or admin

### Warum und wann dieser Vorgang ausgeführt wird

Contact Support for assistance in calculating the batch size for your query.

### Prozedur

1. In the Filter navigator, enter <kbd class="ph userinput">qb_saved_query.list</kbd> and press Enter to navigate to the Saved Queries table.
2. In the Saved Queries list view, locate the saved query for which you want to change batch size.
3. Set or modify the value in the Execution Batch Size field.  
   Set the value to be greater than the global value in the [glide.cmdb.query.batch.size](https://servicenow-prod.fluidtopics.net/qhiZv7XHhLymWKGv8ZCyAg "Set property values to configure query processing.") property, or increase any existing value.

