From ba097051da58d8b9b54e9f6e8c4dd06ab3a213d7 Mon Sep 17 00:00:00 2001 From: MariyaSavova <69398701+MariyaSavova@users.noreply.github.com> Date: Thu, 13 Apr 2023 11:09:07 +0300 Subject: [PATCH] Update How-to-create-an-optimally-fast-calculated-attribute.md The updated documentation now includes a fourth way to optimize calculated attributes. By adding the TOP and ORDERBY operators in the SELECT clause, we can further optimize the speed of our calculations. TOP lets us return only the first N elements of the result set, which can be useful if we only need a subset of the data. ORDERBY lets us sort the result set based on a specified column or expression, which can make the data easier and faster to process. Using these operators in the SELECT clause can significantly improve the performance of our calculated attributes. --- .../QA/How-to-create-an-optimally-fast-calculated-attribute.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/calculated-attributes/QA/How-to-create-an-optimally-fast-calculated-attribute.md b/advanced/calculated-attributes/QA/How-to-create-an-optimally-fast-calculated-attribute.md index 1991f0e89..aba84d0d2 100644 --- a/advanced/calculated-attributes/QA/How-to-create-an-optimally-fast-calculated-attribute.md +++ b/advanced/calculated-attributes/QA/How-to-create-an-optimally-fast-calculated-attribute.md @@ -61,6 +61,6 @@ Knowing this, you can reach two basic conclusions: **And third, when you have no choice but to use [FILTER] clauses, you should try to narrow down the list you're returning.** Just apply as many **[WHERE]** clauses as possible to **[SELECT]**. This way, you're filering the list before it's returned to the **[FILTER]** and therefore, it'll contain fewer records, which will lead to a faster calculation. - +***To optimize the calculated attribute further, you can also use the TOP and ORDERBY operators. TOP returns only the first N elements of the result set, while ORDERBY specifies the column or expression on which the result set is sorted. Using these operators as clauses of the SELECT statement can help to speed up the calculation of your attribute by returning only a subset of the data and organizing it in a way that makes it easier to process. Overall, **[SELECT]** is a very powerful tool that needs to be used wisely.