Questions tagged [performance]
The performance tag has no usage guidance.
63
questions with no upvoted or accepted answers
12
votes
1
answer
822
views
Why is my Lightning App inside a Managed Package extremly slow during its bootstrap phase (but not in the DEV org)?
I do have a managed package that contains a Lightning app (myApp.app) which contains various custom Lightning components.
When I install the package in any org and open the app, it takes a very long ...
10
votes
0
answers
383
views
Make custom, in-memory "Lightning Data Service" work
Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change.
Imagine this to work without saving change to ...
5
votes
0
answers
948
views
Why are these calls into CPQ taking so long?
I'm working through a problem here where we have a website that making calls into Apex code that's taking 8 seconds to add an item to a quote, and I wonder if I could get some help understanding if we'...
4
votes
0
answers
160
views
Why is NPSP (Nonprofit Success Pack) dramatically slowing down my code?
I noticed recently in the performance timeline of an Apex test that NPSP is taking an extraordinary amount of time on the database during our tests at mulitple points. (see picture - all highlighted ...
4
votes
0
answers
82
views
how to see view state size for non system administrator profiles?
I am working on a product in which multiple profiles are applicable for same features (Data is coming according to profile and there are also some layout changes). I like to see the view state of page ...
4
votes
0
answers
695
views
What is selectivity threshold?
In the example mentioned here(Force.com Query Optimizer)
What happens for the below scenario:
Total number of Records in Account table : 2,500,000
And all the records are created on Jan 1st 2015.
...
4
votes
0
answers
641
views
How to load Chatter with Javascript
Question
How can I load chatter (chatter:feedWithFollowers) dynamically (using javascript) in the browser?
Motivation
I'm working on a Visualforce page that should load as fast as possible and the ...
3
votes
0
answers
2k
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 { ...
3
votes
2
answers
302
views
Improving Lightning Performance - What does SFDC consider "Salesforce organization configuration issues"?
Per the following SFDC article, Salesforce indicates four main reasons for Lightning Performance Issues and page load time:
Geographical
Device
Browser
Salesforce organization configuration issues
...
3
votes
0
answers
166
views
Instance Switching
Has anyone had experience in requesting a Salesforce org be migrated from a different geographic instance to another?
Our org was setup a number of years ago (10+) by someone in our US office. Our US ...
3
votes
0
answers
127
views
First event/event relation insert taking a while
I have an application that inserts events and event relations in an org's database and has a loading icon to prevent the user from doing anything until the event and relations are properly created and ...
3
votes
0
answers
360
views
Why does this Batch always and only abort in Production?
I have a long running asynchronous process that process millons of records in a CustomObject__c. To prevent other limits we have split this into 2 Batch classes that work on this table in parallel. So ...
2
votes
0
answers
268
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....
2
votes
0
answers
104
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 ...
2
votes
0
answers
217
views
Can Lookup Field be part of Composite Index?
I have an sObject say
student( ..., student_name text,favourite_teacher
lookup,marks integer)
By the documentation , lookup fields (favourite_teacher) will be indexed by default.
Is it possible ...
2
votes
0
answers
637
views
Lightning Component in Visualforce - Slow Loading in Spring/Summer 18
I know there was the same question in Summer 16 (Lightning Component in VFP - slow loading since Summer 16), but it seems to be the case again in Spring 18 and Summer 18 (I've tested this in sandbox ...
2
votes
1
answer
78
views
Is there a Salesforce equivalent of Unica Optimize?
I am somewhat familiar with Unica's Optimize engine. This compares different campaigns customers are eligible for to determine which one they should be placed into in order to get the optimal business ...
2
votes
0
answers
377
views
Limited speed of downloading from Attachment endpoint
For an Attachment sobject, there is a 'Body' field, whose value looks like: /services/data/v39.0/sobjects/Attachment/00Q5700000v3mCFREE/Body.
When I make a GET request to this endpoint using Python ...
2
votes
1
answer
94
views
CPU time limit error
I have one child object on account having lookup relationship, I want to update the average of some fields of child to parent, for this I wrote one after insert trigger on child. on doing bulk load I'...
2
votes
0
answers
102
views
Main.JS taking more than sufficient load time
I have created a site which is taking more than sufficient load time. After checking the loading in various tool found that a JS file that is main.js is the main culprit and it is an internal file ...
2
votes
1
answer
1k
views
Large delay between FLOW_BULK_ELEMENT_BEGIN flow element and FLOW_CREATE_INTERVIEW_BEGIN
We have a flow, and have noticed it has greatly increased the time it takes for a bulk (200 record) transaction to complete.
We've narrowed down the delay to a 78 second delay between ...
2
votes
1
answer
233
views
I want to improve Salesforce1 Mobile performance
I am having problems with the performance on Salesforce1 Mobile specifically the loading times of visualforce pages, I have tested those visualforce pages independently using the developer console and ...
2
votes
2
answers
552
views
Performance impact of relationship queries in batch start
For a new batch process I have a choice between immediately selecting relevant records in the start function (but using several [field]__r comparisons as they are junction objects being queried) or ...
2
votes
0
answers
81
views
Having a Visualforce page inside of a standard page results in duplicate main.js
I have a custom Visualforce page rendered inside of a standard page Opportunity in one of my layouts. I was researching some performance issues when I noticed that 2 main.js files are travelling down ...
1
vote
1
answer
2k
views
VS Code CLI Retrieve taking too long to respond/complete
For several years I have been using the SF CLI retrieve commands in VS Code to retrieve data from my Partial Copy Sandboxes to my local git repo.
About a month ago I moved from using the force:source:...
1
vote
1
answer
373
views
How to get field references in Reports/ReportTypes?
I am trying to solve a problem of many unused field in my org.
This will be addressed by running a periodic job that will figure out the field usage via number of references and letting the audience ...
1
vote
0
answers
182
views
Lightning console method workspaceAPI.closeTab() is not working after keeping the console tab open for sometime(approx. 2 hrs)
The following method for closing the console tab is working if user launches the page and trying to Cancel immediately. But if the page is idle for sometime like 2 hours and if user try to Cancel , ...
1
vote
1
answer
956
views
Clearing SOQL query cache for query performance testing
I'd like to do performance tests of the same SOQL query to check which order of WHERE and indexes configuration would be the fastest, but database caching makes it hard - after the first SOQL, the ...
1
vote
0
answers
46
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 ...
1
vote
0
answers
626
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 ...
1
vote
0
answers
227
views
Lightning console methods does not respond after keeping console tabs open for sometime
There is a wired behavior observed in our lightning console app.
After few tabs and subtabs opens up and we keep the browser open for an hour or so,
the lightning methods top open tab and subtabs ...
1
vote
0
answers
79
views
Post processing slowness on dev org
We have build custom API on slaesforce. This API is call from C# multilayered application. it stats 1000 threads and hit the custom api almost at same time. Salesforce receive and process all this ...
1
vote
1
answer
263
views
Salesforce performance after installing many appExchange or managed package apps or products
Does installing too many appExchange apps on Salesforce instance has any impact on performance of that instance? I mean every app will have its own triggers or automation and thus consuming power/...
1
vote
1
answer
81
views
Apex Trigger Skipping Its Duties Under Load - Without Limits Errors
I've got a code problem that is only surfacing under load but isn't producing limits errors, making it a little tough to figure out what I might need to do to fix it.
==
I've written an insert/...
1
vote
1
answer
574
views
Apex Loop Optimize
Here is my code
// dynamic fields, the same with queried fields of Database.query(sqlStr)
String fieldList = 'Id, Name, Number, Text__c..........'.split(',');
for(SObject sob : Database.query(...
1
vote
0
answers
39
views
Migration tool took more than the expected time to finish the deployment
Validations and deployments via migration tool to a sandbox took more than the expected time to finish the deployment.
Total deployment/validation time supposed to be roughly 30 minutes and suddenly ...
1
vote
0
answers
277
views
Large time gap in debug log before ENTERING_MANAGED_PKG
When viewing a debug log where the logging level was set to:
APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
I am seeing a large ...
1
vote
0
answers
51
views
reduced latency and improved transaction speed since new data centre opens
I wonder if there is a direct reduction in transaction time for EU based customers as a result of the new data centre that opened in the UK last week (w/c 27th Oct '14), we have noticed a reduction in ...
0
votes
0
answers
28
views
Is there a way to flip the parent/child data in an instance of SObject without a new SOQL query?
I have the following SOQL:
public List<B25__Resource__c> getByIds(Set<Id> resourceIds) {
return [
SELECT Id, B25__Parent__c,
...
0
votes
0
answers
64
views
Embedding SQL in Mulesoft Process Layer? Architecture advice
I know Mulesoft advocates that internal systems should be wrapped into a "System" layer application, and that the executing logic should be put inside a "Process" layer. Usually I ...
0
votes
1
answer
40
views
How can we improve performance of Experience Cloud site?
We build Experience Cloud site following Salesforce best practices but client complains about its performance and loading time.
We tried to open the page /speedtest.jsp but this page didn't provide ...
0
votes
0
answers
174
views
Salesforce Event Log for ApexExecution: cpu_time vs exec_time vs run_time
I'm currently working on an initiative to implement a Log Analysis tool for our organization to ingest the Platform/Logfile Event logs from Salesforce and be able to sort/analyze them over a longer ...
0
votes
0
answers
48
views
Several updates on Case record withing short period of time causing "duplicate value found: <unknown>"
I have pretty complex process starting with scheduled Batch Apex, calling my Mulesoft endpoint to retrieve some data and save it on Case record:
Batch apex request from Salesforce to Mule is ...
0
votes
0
answers
41
views
Batch Class - Performance Optimization
I have a batch class which converts attachments to Files for old records in the system.
We are running with batch size of 20 to 25 for the attachments to convert to Files but the conversion process is ...
0
votes
0
answers
1k
views
Why is Salesforce inspector faster than data loader or workbench?
I have a use case where I need to delete a few million duplicates from my org. I have explored the following 3 tools to achieve this. Salesforce Inspector, Data Loader and Workbench. The performance ...
0
votes
0
answers
191
views
Using one data extension for journeys and contact updates via API
Would it be a good practice (looking at performance) to setup one Data Extension that stores all contacts/Subscribers (including 20 attributes) and to let this Data Extension be updated via REST API ...
0
votes
1
answer
169
views
Is it possible to get "average record save" time for a specific SObject type?
We are optimizing our existing code base using a set of frameworks. We want to measure, how these improved the performance of a transaction.
Is there a way to check average record save time in ...
0
votes
0
answers
264
views
What should be used to search a string across multiple fields of a single object? SOQL or SOSL
I want to search records for a particular object based on filter string that can match multiple fields on that object. This can be achieved via both SOQL and SOSL:
SOQL : using like operator, applying ...
0
votes
0
answers
1k
views
Long delay between platform event publish and platform event subscriber processing
Kindly help me with following scenario.
In short - need help to minimize the delay between platform event publish and platform event subscriber processing.
Platform Event Details -
Event Type - ...
0
votes
1
answer
57
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 ...