1. How to see the current ongoing issues in Salesforce ?
Go to --> https://status.salesforce.com/ --> Which provides transparency around service availability and performance for Salesforce products.
1. How to see the current ongoing issues in Salesforce ?
Go to --> https://status.salesforce.com/ --> Which provides transparency around service availability and performance for Salesforce products.
1. In the role hierarchy you have agents in different country and they are reporting to respective leads of each country & Organization-Wide Default (OWD) for objects set as private. So agents can't see each other records by default. What about country leads ? Can one country lead see other country agents owned records?
2. How to improve the slow running SOQL ?
1. How many number of items can be added into a Salesforce Collection (List/Set/Map)?
No Limit, Earlier it was 1000 but later it's been removed but keep in mind if you add more number of items it will lead to the Heap Size Error, Means too much data is being stored in memory during processing,6MB for synchronous transactions and 12MB for asynchronous transactions.
Fix have the SOQL query with as many as filter conditions and have the low number on the limit of records to be returned, To add to the list & Have the declaration with in required scope only.
In many scenario's we come across to know the query execution time which mainly helps in performance tuning and Improving the code not to fall under any governor limits.
Ex: In Production around with lakhs of record how the query performing? If we know the execution time then can think of improvisation.
Step1 : Login To Salesforce --> Developer Console --> Debug --> Select "Change Log Levels" --> General Trace Setting For You --> Debug Level Action --> Add/Change --> It opens "Change Debug Level" Pop Up -->Set "Profiling" --> "Finest"
This issue we face generally when we have long running jobs.
Which one considers as long running job ?
In this context ,Any Synchronous Apex runs > 5 seconds considers as long running job.
When we get this error ?
Ex: If in your org governor limit allowed to run 10 concurrent jobs execute at a time and you get 11th job then you see this issue.
Solution ?
Try to move it to asynchronous wherever possible
How to identify which job / Apex causing this issue ?
It will be challenging to identify if you have larger code base /complex business functionality, So raise request to Salesforce to provide the root cause.
In our case we have signed for signature support and Part of proactive monitoring the details of which apex causing issue is shared.
If you don't fix this concurrent apex issue ,What happens ?
It will lead to performance issues & Fails to process the request which suppose to process can lead to business impact.
What is the apex causing issue in our case?
Inefficient SOQL Query : One of the SOQL query is taking
Avg Run Time : 9 Seconds
Max Run Time : 18 seconds
Note : This query is been used in frequent polling of our logic ,So definitely required to fix.
What is the solution for " Inefficient SOQL Query " ?
I came across this issue recently in production & The root cause is the length of the string which used in the regex.
Our use case it should verify combination of 2 words in received string & It started failing if the received string length is >369 characters
Ex: Card , Delivery keywords should be verified in the received string and it could be of any order.
Actual Issue : Its hitting the heap size error 6 MB for synchronous
Solution :
1. Move the logic to asynchronous as heap size will be 12 MB.
But in our case its not possible to move the asynchronous, Because its should be real time on every record insert this need to be tested and batch job cant be run that many time and future method also has 24 hrs limitation 250000 and on every record entry if that future method called that also hits another governor limit.
2.Split the message and verify the keywords in the smaller chunk message, This approach has been taken and working fine.