Questions tagged [performance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
37 views

Performance comparison between LWC Reactive property and javascript Property

There two ways we can define property in lwc javascript. We can define reactive property which we can use in HTML page. This reactive property stays throughout the lifecycle of the LWC component. ...
4
votes
1answer
90 views

Do additional Permission Sets reduce Salesforce Performance?

I have hundreds of different functionalities setup in Salesforce each with its own Permissions Set for various privleges (FLS, Class access etc), given to various roles across the business. I wish to ...
0
votes
0answers
28 views

Optimizing the Org

I have been working on an org which have a lot of automation on the objects especially leads. There are more than 10 process builders and triggers each. They all work for different processes and ...
0
votes
0answers
14 views

Improve initial load performance of actionOverride containing lightning web components

I created an actionOverride which is used as an optional replacement of the "New"-action for Leads, Contacts, and Accounts. This is done by using an Aura Component as a wrapper containing my ...
0
votes
0answers
13 views

PK Chunking : message" : "The requested resource does not exist"

I enabled PK chunking in Full Copy Sanbox by following below steps: Can anyone tell me what mistake I am doing? Create Job XML <?xml version="1.0" encoding="UTF-8"?> <...
5
votes
2answers
143 views

Why salesforce lightning experience is ironically sluggish?

Why lightning experience is ironically sluggish? The classic experience comparatively feels faster when it comes to page load time and navigation. Have seen may developers and admins prefer classic ...
5
votes
2answers
577 views

Infinite queueable chaining, what is the drawback?

As mentioned here Because no limit is enforced on the depth of chained jobs, you can chain one job to another. You can repeat this process with each new child job to link it to a new child job. What ...
7
votes
2answers
195 views

Is a big startup delay for the first use of a custom Lightning App using 140 custom LWCs normal?

We have a 3rd party developed Lightning App where most of the components don't render until after a 50 second delay on the first use of the day. But you can e.g. open the Salesforce Sales app first ...
4
votes
2answers
71 views

Javascript loop very inefficient......Why? [duplicate]

I am not a javascript expert but thought this was a slam dunk to code until I saw the results. I am looking for help to make this MUCH more efficient. I have a simple for-loop going over a list of ...
1
vote
1answer
69 views

Understanding Batch Apex / Callout performance

I am looking for some advice regarding the optimization of an Apex Batch which is behaving quite differently in UAT and PROD environments. In our ORGs we have a Batchable process that is responsible ...
0
votes
1answer
156 views

Slow overall performance in Community

I have struggled with slow performance in my Community for years now. It is getting worse. We use a Community for our publicly facing website & for our portal. The slow performance is on all ...
0
votes
0answers
20 views

How to consume the export output of the Experience Builder Site Performance tool?

This Analyze and Improve Experience Builder Site Performance tool, a Chrome extension, includes an Export feature that outputs content that starts like this: { "buckets":{ "1"...
0
votes
1answer
26 views

How can I automate page load time testing?

I'm trying to get metrics for page load times. I'd like to load the page many times, say 100 times, and get the average time it took to load the page, from a virtual Cmd-R to the page remaining stable ...
1
vote
1answer
27 views

Is there a way to group cases which refer to the same issue together?

Currently the salesforce set-up is creating a case every time a client enters live chat, emails in to a support email and then a sales email. If a user communicates via all 3 channels regarding the ...
0
votes
1answer
63 views

What is the Salesforce Speedtest

The Lightning Experience Performance Optimization says, "Measure latency, as well as download and upload speeds, using the Salesforce Speedtest." But no link to this is given and I don't see ...
0
votes
1answer
387 views

Where can I find the Lightning Usage App?

I'm looking to use the Lightning Usage App to get metrics on my app, but I cannot find it. The Lightning Experience Performance Optimization says, "To open the Lightning Usage App, click the App ...
1
vote
1answer
163 views

Performance : Removing null from Set

From a performance view point which is better: Set<String> uniqueStrings = new Set<String>(); // Keep checking for null and then add to Set for (Integer i = 0; i < 100; i++) { if(...
1
vote
1answer
113 views

SOQL Performance with multiple lookups

I have a search query in my component that shortly will need to support more than one lookup field where only one would be filled on the certain object. For now the query looks as follows: SELECT ...
1
vote
0answers
32 views

Moving process automation into Trigger - are the performance benefits real?

A while ago, I asked about this: Performance gains of moving automation into a trigger? And I got some great feedback from everyone. I'm working in a real world scenario now and proposing an org move ...
0
votes
1answer
24 views

Difference between a straight query and a relationship query

I'm trying to understand the performance difference or query execution time between direct SOQL query and relationship query. For example, I need data from Account and User object. sap_id__c is the ...
0
votes
2answers
93 views

Is `event.getParams()` expensive?

If I have to use a param from the event in a loop, is it better to extract the params to a variable before (e.g. const params = event.getParams()), and use that variable instead of calling event....
0
votes
1answer
45 views

Case Assignment Rules running Multiple Times - Negative Impact

I have a bit of an odd question. Is there a negative impact running assignment rules on a Case object on every insert/update? We have a use case where we need to run when the user uses inline edit, ...
0
votes
0answers
16 views

Leading % in SOQL

I have a requirement to use a leading % in my SOQL as below.I know if we use a leading %, it precludes use of indexes. SELECT Id, RecordType.Name, Name, PersonBirthdate Account WHERE <<FieldName&...
1
vote
1answer
72 views

Improve performance and speed in Lightning Experience [closed]

Recently switching from Classic to Lightining and users started feeling very slow to load the page, does anybody has any pointers what might the case and what to look for in order to make it faster ...
0
votes
0answers
39 views

Debug Logs Cumulative Profiling not matching the actual debug logs

I have applied debug logs on a batch process and noticing some weird behaviour in Debug Logs. For some of the instances of debug log for execute method, I see that each method invocation to batch ...
1
vote
0answers
62 views

Is that possible to use query plan for dynamic SOQL queries?

I know we can verify straightforward SOQL in query plan. Now, I am trying to find a way to use query planner for a dynamic SOQL queries. My SOQL query depends on several Ids (list of Ids) and binding ...
0
votes
1answer
52 views

How the framework knows that the cached data is stale?

I am wondering on how the framework understand that the data is stale when we use the annotation cacheable=true. Will the framework looks for a change in the timestamp of each record?
0
votes
1answer
70 views

Are there API available to measure the flexipage loading time?

There is "Lightning Usage App" and there is "pages" tab, we can view the flexipage performance on that app. But is there any API available for developer to access those performance ...
0
votes
1answer
101 views

Is there a performance difference between Custom Settings vs Custom Objects? [closed]

Specifically, is it faster to query for a single record from a Custom Setting vs a Custom Object? Or is it about equal performance?
1
vote
1answer
137 views

Any way to tell in Salesforce how much CPU a specific Process Builder/Flow is using?

We are running into CPU time limit exceeded errors in Salesforce. The org does have multiple Process Builders/Flows on the Case object. For a particular Case insert operation, I pulled an analysis ...
2
votes
1answer
175 views

How to avoid nested for loop condition for code Optimization?

public void execute(Database.BatchableContext BC, List<FinServ__FinancialAccount__c> scope) { Set<String> Acc_Numbers = new Set<String>(); Map<String,List<Id>...
2
votes
0answers
42 views

Is this an acceptable Task query performance

I have been investigating a performance issue in a Visualforce page, with the help from Salesforce support. After a couple of months info exchange, the issue is narrowed down to the DB query time on ...
0
votes
0answers
22 views

Method to display the page execution time

Is there a method to display the page execution time? I have a usecase that needs to display page execution time on a lightning component on a partner community portal.
1
vote
1answer
36 views

Static variable + static block initialisation VS static initialisation

In the doc from salesforce, there is the following example. public class MyClass { class RGB { Integer red; Integer green; Integer blue; RGB(Integer red, ...
2
votes
2answers
229 views

Package installation time is getting *drastically* vary, how to optimize it?

We have unlocked packages with CICD enabled. Sometime those package installation takes 5 mins and sometime goes till 30+ mins. Since I know it had been installed in 5 mins, why its getting weird ...
1
vote
1answer
184 views

How to Optimize SOQL Query when I have 15 million Account records?

I have a use case where I am exposing a custom Rest service that would accept phone# as an argument and compare with the five phone# fields on Account and would return the single record matching ...
1
vote
1answer
70 views

Managed packages: monitoring vendor-initiated upgrades

In the past, we've heard from our Salesforce Support team that certain managed packages in our org may be impacting execution times on key transactions. Business teams recently reported these ...
1
vote
1answer
84 views

Does creating a record type worsen DML performance on the object?

If you have an object with no records types versus one with a couple, is performance affected in terms of DML insertion? I experienced a change in DML performance after creating multiple record types ...
0
votes
1answer
140 views

API Performance Sandbox VS Production

I've built a custom REST API Endpoint in Salesforce that does a simple query, an external ID is passed to it, and the Salesforce ID is returned as JSON - nothing complex. I have not yet deployed to ...
1
vote
1answer
1k views

Lightning Web Component extremely poor performance

I have a component that is running extremely slow. I'm seeing it at times take upwards of 30 seconds to pull back and process data (roughly 3k records) received via an imperative Apex call. I've ...
0
votes
1answer
170 views

Too many console.log statements decrease performance? [closed]

I am trying to understand if writing too many console.log statements will hinder the lightning component performance. In particular will it affects the loading and rendering time? please don't close ...
2
votes
2answers
82 views

Performance Implications at Scale for checking if Set Contains Record before Addition?

As we know, a Set is a collection of unique elements (cannot contain duplicates) While writing some Apex just now, I was inclined to use !SetName.contains(Id) to skip the addition of records if they ...
2
votes
0answers
683 views

LWC Error: appendChild is not a function / Cannot add property innerHTML, object is not extensible

I am trying to add an iframe element to a container div: <template> <div class="container" lwc:dom="manual"></div> </template> JavaScript: import { ...
1
vote
1answer
504 views

How to Optimize a Nested For Loop and Avoid CPU Limit Errors

I'm been tasked w/ updating another Developer's code that was running up against governor limits (specifically the Apex CPU limit). The code in question is fired via the before update trigger on the ...
0
votes
1answer
158 views

Is it possible to access the Salesforce Performance Test as a Customer Community user?

There are a number of users who only have access to our community that are experiencing a lot of issues with slow pages and I want to gauge where the performance problems are coming from (e.g. latency,...
0
votes
2answers
116 views

How to Test the Performance of Rest web services in Salesforce( at the same time there is multi requests), Is there any tool?

lets say if 10 users hitting web service at same time(concurrency),then how we can check performance. Please share your Ideas Thanks in Advance..
0
votes
1answer
153 views

Improve performance of a rest resource

I have a rest resource which fetches more than 10000 records. iterates the list using foreach and adds each record to a custom wrapper class list and finally returns the custom wrapper list as ...
0
votes
1answer
113 views

Can Performance Testing possible in a Partial Copy sandbox?

Salesforce suggests Performance Testing only in Full Copy sandbox. Is there any reason why it cant be done in a Partial Copy sandbox?
0
votes
1answer
34 views

Salesforce performance issue receiving "an internal server error has occurred" 933150784 [closed]

I am receiving "an internal server error has occurred" 933150784 when conducting performance testing. This only occurs when the number of users is above 300. No errors if under that amount. Any ideas ...
0
votes
1answer
17 views

Max request per sec/hour for a VF page webform

We have a VF page as a webform and hosted as a Salesforce site.Because there are lot of requests hitting it,is it possible for us to get an estimate of how many requests can it handle per sec/hour?Is ...

1
2 3 4 5
7