Hello guys
If I use the Get Entity Action this way GetHOME(HomeId).HOME.Altitude which of the following sql queries are executed in db?
- select Altitude from HOME (only returns the selected value)
- select Altitude from ( select * from HOME ) aux (returns the full record and then returns the selected attribute)
Thank you
Hi,
The optimization is framework wide and not only on specific places.
Regards,
Marcelo
Hi Ruben,
I think OutSystems has been designed to consider performance in mind.
regards,
A
The Outsystems compiler optimize the querys in a way that only fetch the values being used. So in that case "select Altitude from HOME" should be the query that is executed in db.
Marcelo Ferreira wrote:
Hello Marcelo,
Does that optimization occurs only in Preparation or does also occur in Actions? I'm using the Get Entity in a general action.
Thanks
This optimization can only work in Preparation and not working in actions that`s why outsystems prefers agregates in Preparation.
Regards
-SK-