Retrieve Query Plans

Use the Query Plan tool to view, optimize, and speed up SOQL queries on large datasets.

You can retrieve a query plan for a query by using one of these methods. The query plan shows each operation and its cost. The output panel shows all the available notes for your highest ranked query plan, which is the query plan currently in use. You can view the query plan from the SOQL Builder and from the text editor. The plan opens in the Output tab.

  • Open a query in the SOQL query builder and click Get Query Plan.

    The query plan shows in the SOQL Query Builder

  • Open a query in the text editor and click the Get Query Plan text preceding the query text.

    Get query plan from the text editor

Beta Feature

Web Console is a beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory Product Terms Directory . Use of this pilot or beta service is at the Customer’s sole discretion.