---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Execution mode

# Set execution mode for running a query {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure the execution mode to use when running a query, at the query-level. The execution mode determines whether the query runs using a performance-enhancing engine (V2) or the legacy engine (V1).

## Before you begin

Role required: cmdb_query_builder

## About this task

A query can run in either of the following execution modes:

* V1: Runs the query using the legacy query execution engine.
* V2: Runs the query using an enhanced query execution engine which is designed for improved performance and scalability.

{#config-query-builder-engine-mode__ul_cd2_cj1_nhc}  
Note:  
When running queries that contain 'OR' nodes, the format of the returned results is different between the two modes.

The system uses query-level settings and system-wide properties, and also checks the query structure, to determine which mode to use. The query-level setting described in this procedure has precedence over system property
settings in the decision flow of which engine to use to run a query.

For more information, see [CMDB Query Builder engine execution modes](https://www.servicenow.com/docs/ndv95ECHWK_uCrVwLb~xAw "The CMDB Query Builder engine uses two execution modes to run queries. By default, the system is configured to use the enhanced mode V2 which is designed for performance optimization. V2 is supported for most queries and enables running complex queries significantly quicker and process larger result sets without performance degradation.").

## Procedure

1. Navigate to All and then, in the navigation filter, enter <kbd class="ph userinput">qb_saved_query.list</kbd> to open the Saved Queries table.
2. In the Saved Queries list view, select the query for which you want to set execution mode.
3. On the query's form, set Query Execution Mode to 'v1' or 'v2'.
4. Select Update.
{#config-query-builder-engine-mode__steps_j5g_5rp_lgc}

