Loading

Maximum Number of Custom Indexes Per Salesforce Object

Fecha de publicación: Apr 22, 2026
Descripción

This article explains the default limit for the maximum number of custom indexes per object (entity) in a Salesforce organization, and the available options for creating custom indexes to improve query performance.

Custom indexes are a tool that Salesforce Support can use to help resolve slowness or timeouts on specific fields. For example, if a custom field like Contract_Expiration_Date__c is frequently used in SOQL queries and causing timeouts, a custom index on that field can significantly improve query performance.

Available Editions:

Professional, Enterprise, Performance, Unlimited, and Developer

Limit Details

Default Limit: 25 custom indexes per object (entity)

How to Increase:

Submit a limit increase request with Salesforce Support

Prerequisites:

Review Salesforce documentation on custom indexes and query performance before submitting a support request. Be aware that custom indexes, when used improperly, can actually slow query results — reach out to Support to determine the best approach for your specific performance issue.

Solución

How Custom Indexes Are Created in Salesforce:

There are three ways custom indexes are created in Salesforce:

  • Option A — External or Unique Field: Marking a field as "External" or "Unique" will create a custom index on that field. Note that this method has its own separate limit, defaulted at 7.
  • Option B — Automatic Indexing: Some indexes are created automatically when Salesforce systems determine a field will benefit from one.
  • Option C — Salesforce Support: Custom indexes can be created by Salesforce Support as part of a performance case (for example, SOQL queries or Analytic Reports timing out).

Requesting a Limit Increase or Performance Assistance:

If you've reviewed all relevant documentation and still need assistance with custom indexes or a performance issue, please have a System Administrator create a limit increase request with Support.

When submitting your request, please be specific and include:

  • Whether the performance issue exists within a SOQL query, a report, or another area
  • Links to the affected queries or reports
  • Login access for the Support analyst so the case can be routed to the appropriate teamImportant Notes:
    • Custom indexes are not the only tool that will be used in a performance case — Salesforce Support will evaluate the full picture.
    • Custom indexes, when used improperly, can actually slow query results. Always consult with Salesforce Support before requesting an index on a specific field.
Número del artículo de conocimiento

000386304

 
Cargando
Salesforce Help | Article