0

I have a working Aura Application with a requirement of showing heavy data inside of many lightning datatables based on the LoggedInUser.

It works fine for majority of the users but for few, the data is too much and we hit the governor limits: CPU Execution Time, Ex: Maximum CPU time: 5232 out of 10000 ******* CLOSE TO LIMIT

The @future method doesn't work for me because the Apex Method returns a Map of custom Apex Data type.

Is there a way to make my AuraEnabled method(s) ASYNCHRONOUS?

TIA.

1 Answer 1

0

Can you post some of your code to give a context:

Have you tried giving this a shot: Return Result for Asynchronous Code

If you haven't tried that, I would try implementing it. Your callback should be able to process and render the data. Still says the aura:method executes synchronously though :(

Also came across this: Make Long-Running Callouts with Continuations

which seems interesting if you were doing a callout.

hope that helps solve your problem!

1
  • I read the first article before posting this question. It might work but wanted to see if there's other ways to achieve this. Also, doc says: JavaScript code that calls a server-side action is asynchronous.
    – apz
    Mar 12, 2021 at 17:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .