17
Views
4
Comments
Solved
Question about server actions in mobile and performance
Question

Hi

When we use more than 1 server action in a client action we get a warning about performance.

What is the best practice in this case?

- Put each server action inside one client and then call the clients on the main client action or call all the server actions inside a single server action?

Thanks!

2019-04-23 11-32-25
Muhammed Riyas
Solution

Hello Julia,

Outsystems suggests to encapsulate all server actions required for a client action within one server action.

Regards,

Riyaz

UserImage.jpg
Julia Ramos

Thank you! :)

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Correct, and the reason to do this is that with this way you minimize the calls from the client to the server to 1. Every call to the server is "expensive" as it needs to go over the network/internet.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.