Top 10 performance rule
Application Type
Traditional Web

I am looking into top 10 performance monitoring rules, where i found below 1 rule

Avoid using preparation data in screen actions

Don't use preparation data in screen actions because it increases the network traffic between the server and the browser. This in turn increases network usage and degrade server request processing performance.

I really don't  understand this, can someone elaborate more about this?
Correct me if i am wrong, Every time we have to write query to fetch the same data in the action.

Champion
Solution

Hi Pradip,

If you  use preparation data in screen action it would increase the viewstate and every time that view state data sent over the network (HTTP POST). So it will increase the network traffic and would be cause of slower request. 

Hence, It is better to fetch data in screen action.

For more - Please check below links-

1. https://success.outsystems.com/Documentation/Best_Practices/Performance_and_Monitoring/Performance_Best_Practices_-_User_Interface

2. https://medium.com/@fabricio.bonifacio/why-you-should-not-use-preparation-data-in-screen-actions-7ed22e795516


Thanks and regards,

Rahul

I got this link, very good explanation with the short example ,

https://medium.com/@fabricio.bonifacio/why-you-should-not-use-preparation-data-in-screen-actions-7ed22e795516

Champion
Solution

Hi Pradip,

If you  use preparation data in screen action it would increase the viewstate and every time that view state data sent over the network (HTTP POST). So it will increase the network traffic and would be cause of slower request. 

Hence, It is better to fetch data in screen action.

For more - Please check below links-

1. https://success.outsystems.com/Documentation/Best_Practices/Performance_and_Monitoring/Performance_Best_Practices_-_User_Interface

2. https://medium.com/@fabricio.bonifacio/why-you-should-not-use-preparation-data-in-screen-actions-7ed22e795516


Thanks and regards,

Rahul

Hi Pradip,

It's indeed as Rahul explained. To clarify a detail; of course you can (and in many cases you need to) use the data that you fetch in Preparation, in screen actions too. You just have to use them not directly but re-call them with a Refresh Data component. Rahul's second link explains this well.

Thanks for the quick reply..

I got this link, very good explanation with the short example ,

https://medium.com/@fabricio.bonifacio/why-you-should-not-use-preparation-data-in-screen-actions-7ed22e795516

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