Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Retrieve Query Plans

          Retrieve Query Plans

          Use the Query Plan tool to optimize and speed up queries done over large numbers of records. View query plans for SOQL queries, reports, and list views. If custom indexes are available for your organization, use query plans to help you decide when to request a custom index from Salesforce Support.

          To enable the Query Plan button in the Query Editor, click Help | Preferences, set Enable Query Plan to true, and then click Save.

          To get Query Plans for SOQL queries, enter your query and click the Query Plan button in the Query Editor.

          The Query Plan window displays all query operations and the cost of each. The Notes pane displays all notes that are available for your highest ranked query plan, which is the query plan that’s currently in use.

          To view query plans for reports or list views, complete these steps.

          1. Find the ID of your report or list view in its URL.
            List view IDs follow the "=" in list views' URLs.
          2. Enter the report or list view ID in the Query Editor, and then click Query Plan.
          3. Inspect the query plan for your report or list view.
           
          Loading
          Salesforce Help | Article