142
Views
2
Comments
Solved
How are aggregates better that advance SQL?

How are the aggregates optimized? Why is it better to use aggregate and retrieve whole data from entities than write advanced SQL and retrieve only what you need.  I watched videos and everywhere it is said, that you should only use advanced SQL in case when aggregates can not retrieve data the way you need and that's the extreme case I guess. But I still wonder why is it better.

2024-11-20 08-28-20
Pedro Marques
Solution

Hi Nino,

Take a look here and here.

Let me know if this helps,

Pedro

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Just look at the previous discussion on the same topic to learn more about OutSystems' optimizations while retrieving records with Aggregates and to understand other related things as well.

https://www.outsystems.com/forums/discussion/72833/aggregate-or-sql-widget/

https://www.outsystems.com/forums/discussion/72693/why-aggregate-and-not-sql/

https://itnext.io/outsystems-101-aggregates-vs-sql-queries-ec7223f4c496



2024-11-20 08-28-20
Pedro Marques
Solution

Hi Nino,

Take a look here and here.

Let me know if this helps,

Pedro

2021-08-04 12-19-54
Mayank Dharmpurikar
Solution

Just look at the previous discussion on the same topic to learn more about OutSystems' optimizations while retrieving records with Aggregates and to understand other related things as well.

https://www.outsystems.com/forums/discussion/72833/aggregate-or-sql-widget/

https://www.outsystems.com/forums/discussion/72693/why-aggregate-and-not-sql/

https://itnext.io/outsystems-101-aggregates-vs-sql-queries-ec7223f4c496



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