Performance: Avoid recount when clicking a process button
Description
We are having the following scenario, there is a tab with a big number of rows and a complex WHERE clause to filter the rows.
The tab has a button.
Whenever we click on the button to run the process it takes around 7 seconds to open the process dialog, cancelling the dialog takes another 7 seconds.
Tracing the problem this is caused because triggering a refresh when the button is clicked, and another refresh when is cancelled.
The only refresh required is when the process is executed, because the process could affect the rows in memory.
We are having the following scenario, there is a tab with a big number of rows and a complex WHERE clause to filter the rows.
The tab has a button.
Whenever we click on the button to run the process it takes around 7 seconds to open the process dialog, cancelling the dialog takes another 7 seconds.
Tracing the problem this is caused because triggering a refresh when the button is clicked, and another refresh when is cancelled.
The only refresh required is when the process is executed, because the process could affect the rows in memory.