Questions tagged [cpu]
The cpu tag has no usage guidance.
16
questions
2
votes
0
answers
145
views
Where is Database.query() spending (so much) CPU time?
My assumption was that only Apex Code is using CPU time. But the what I measure for code that is run by Salesforce's own Backend code speak a different language.
List<SObject> result = Database....
0
votes
0
answers
180
views
Testing CPU times for Flows/Process due to new 22 Summer Release
So i was testing my Flows and Process in Salesforce to get the CPU times for testing porpouses related to Summer 22 Release. Im using the Developer console to get the needed logs. I get 3 diferent ...
0
votes
1
answer
32
views
conditional cast of sObject to Custom Object in Apex salesforce
I have a case where I hit CPU limit (records creation operation that takes longer than Salesforce allows).
I see as one example they advise using maps instead of Lists
but I cannot get how I can use ...
2
votes
2
answers
179
views
How to track CPU time of specific classes instantiated from a trigger handler
Wondering if there is a way to see the CPU time used by a specific static class instantiated from a trigger handler. I see the overarching trigger cpu time used and then there is a dropdown that ...
0
votes
1
answer
376
views
APEX CPU Limit Exceeded
I am currently receiving an APEX CPU Limit Exceeded error when trying to save work orders. This is happening with any field updated. The error received is RG_WorkOrderTgr: System.LimitException: Apex ...
7
votes
1
answer
1k
views
Lightning Component Indexing in VisualStudioCode hogs CPU and memory slowing my PC
I keep seeing "Indexing Lightning Components" in Visual Studio Code, which is a CPU and Memory hogging activity, slowing my PC. Is there a way to make it less CPU intensive?
1
vote
1
answer
552
views
Scheduled Process to Update Price Book Entries
I need to write a process to handle the following:
Retrieve all price book entries for the standard price book
Retrieve all price book entries for non-standard price books that have a matching ...
0
votes
1
answer
239
views
Test method passes when run individually, but hits CPU limit when run with other methods
I'm working on an apex class that does the following:
On a given record, compress field data from it and four child objects into CSV format on a long text field
Export the compressed data to files in ...
6
votes
2
answers
3k
views
Contact Mass Update - "System.LimitException: Apex CPU Time Limit Exceeded"
I'm attempting a mass update on Contacts via Execute Anonymous. My code gives me the following error:
System.LimitException: Apex CPU Time Limit Exceeded
Here's my code:
List <Contact> ...
12
votes
2
answers
3k
views
CPU issues caused by process builder and workflows has really gotten bad in last 3 releases
Not getting much activity on the Salesforce Community site with this one so I'll try it here. I've noticed a massive spike in CPU exceeded limits since Summer 15' and Winter 16'. I've personally ...
7
votes
2
answers
280
views
Significant elapsed time differences when calling sort() on different Comparable implementations
Before I dive into a bit of code, a summary of my question is: does anybody know what Salesforce does internally when calling .sort() on a List of custom classes?
Scenario: I have a wrapper class ...
1
vote
0
answers
127
views
Apex cpu time limit without change anything [closed]
In my instance I could insert or update record with a batch size of 100 records without problem.
The last week and with the same code in production we started to get the apex cpu limit and we have to ...
2
votes
0
answers
401
views
CPU Timeout - SendEmail API resulting in Maximum Timeout
We are facing issue with the Maximum CPU Time in our Sandbox and Production.
Here is the scenario:
We have a visualforce page which allows to send email to
contacts(working fine for less than ...
2
votes
2
answers
838
views
como puedo resolver este error que me aparece / how to resolve error: 'apex cpu time limit exceeded'
tengo mas de 4000 registros en cada uno de los objetos como puedo resolver el error que me aparece de apex cpu time limit exceeded
public class ConciliacionController {
//declaracion de variables
...
0
votes
1
answer
215
views
How Salesforce makes sure that no single tenant consumes majority of CPU cycles?
I am new to salesforce and just into theory as of now. I have been hearing a lot about multi-tenancy architecture which makes me think how do salesforce divides the CPU cycles.
I looked into ...
81
votes
3
answers
13k
views
How does SF calculate the CPU time?
How does SalesForce calculate the CPU Time that was introduced in Winter '14? I am seeing varying results from it. Why does the CPU count vary?
I am running a single block of code over and over again ...