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
Mahilde ZucaroMahilde Zucaro 

External data source : Time limit exceeded

Hello,

I try to connect a Solr with Opensearch to Salesforce. I use External data source like the Salesforce tutorial.
My source is validate with success but the synchronization doesn't successed : Time limit exceeded
Your request exceeded the time limit for processing. 

My Solr server is correctly setup.

Does anyone have any explaination about why this is happening and what I could do to fix it? 

Thanks
NagendraNagendra (Salesforce Developers) 
Hi Zucaro,

To handle Time Limit Exceeded: Your request exceeded the time limit for processing in Salesforce

1. Cache any data that is frequently accessed, such as icon graphics.

2. Avoid SOQL queries in your Apex controller getter methods.

3. Reduce the number of records displayed on a page by:

a. Limiting the data coming back from SOQL calls in your Apex controllers. For example, using AND statements in your WHERE clause, or removing null results

b.Taking advantage of pagination with a list controller to present fewer records per page

For more information on how to Define an External Data Source for Salesforce Connect—Cross-Org Adapter please double check this link below.
Hope this helps.

Best Regards,
Nagendra.
Ryan Sieve 11Ryan Sieve 11
@Mahilde, did you ever resolve this issue?