Optimizing Aggregation

FOCUS aggregation verbs SUM, COUNT, and WRITE, and direct operators MIN., MAX., and AVE., retrieve a final aggregated answer set rather than individual values. Since the RDBMS handles aggregation efficiently, the adapter structures its retrieval request so that the RDBMS performs the aggregation. The adapter passes aggregation to the RDBMS when:

Note: FOCUS calculates COMPUTE fields on its internal matrix. They do not affect the ability of the adapter to pass requests for aggregation to the RDBMS.

The adapter translates IF TOTAL and WHERE TOTAL tests to the SQL HAVING clause. It translates IF TOTAL and WHERE TOTAL tests on DEFINE and COMPUTE fields subject to the general limitations on the use of DEFINE in aggregation (see Valued Expressions).


Information Builders