function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Query and Index Questions

In some areas of our site, we’re being killed by a delay that comes from querying Salesforce.  Does anyone have any recommendations, tricks, or advice on how to reduce that delay?


1)  When querying data directly from Salesforce, particularly when doing a JOIN, how can you be certain you’re using an “indexed” field?

2)  Are certain fields automatically indexed?

3)  Can you create indexes?


Ritesh AswaneyRitesh Aswaney

Id and ExternalId fields are auto-indexed.

I believe marking a field as an External Id causes an Index to be created on it.