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
Brian SheaBrian Shea 

Lightning component running slowly

Hi there,
We have created a custom Lightning component that is called by an Action in Lightning. The component performs some pretty basic operations: it just updates a few fields on the record.

For users with the System Administrator profile, the feature works as intended. However, when other users use the feature, it takes about 20 seconds to execute, so the page refreshes for the user before the operation is complete (so the user thinks nothing has happened). Once the user refreshes the page after 20 seconds, they can see that the record has been updated.

We have been testing to try to identify why the feature doesn't work for non-Sys Admins but haven't been able to find anything. We tried giving the Profile modify all access to object + access to all fields, but that does not fix the issue. We have looked at other discrepancies between the Sys Admin and the other profile, but we haven't found anything that resolves it.

One other point: we have created a Javascript button for Classic that calls the underlying Apex Class directly, and this works fine for all users. We need to figure out a solutioln that will also work in Lightning.

 

Does anyone have thoughts on what could be causing this? or any potential fixes or workarounds? 

 

Thank you!

Brian

Best Answer chosen by Brian Shea
Ajay K DubediAjay K Dubedi
Hi Brian,

To resolve this issue, you can take help from below link:-
https://www.jitendrazaa.com/blog/salesforce/15-ways-to-improve-performance-of-lightning-components-in-salesforce/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi

All Answers

Ajay K DubediAjay K Dubedi
Hi Brian,

To resolve this issue, you can take help from below link:-
https://www.jitendrazaa.com/blog/salesforce/15-ways-to-improve-performance-of-lightning-components-in-salesforce/

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
This was selected as the best answer
Brian SheaBrian Shea
Thanks @Ajay!