I have been using Apex right now to parse the CSV and I am being thrown with CPU time limit error
when there are more number of records. Hence, I am planning to move towards LWC JS as the CSV file is being collected in the LWC. My question is, will the JS count towards the CPU time limit and heap size issues? Because I could not find the explicit mention of the same in Docs.
Add a comment
|
1 Answer
No, it does not. JavaScript executes on the client side and is not subject to governor limits as such - although any interactions you perform against the server are.
-
In addition to above answer, remember there are still limits which apply to LWC for example max file size for js file is 128 KB.– ElijahCommented Apr 1, 2023 at 6:29
-
-
To expand on David's last point, data sent to the server as parameters does contribute to heap size, and the time spent in executing the call on the server contributes to CPU time. However these are per call, not accumulative across all calls from the LWC to the server.– Phil WCommented Apr 1, 2023 at 9:22