EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB45719: How does the MicroStrategy Query Engine: Global Optimization feature apply to reports with custom groups.


Community Admin

• Strategy


This article describes how global optimization can apply to custom groups.

SUMMARY
Global Optimization exists in Strategy so that SQL passes could be combined for efficiency and faster execution performance.  If multiple passes use the same base metrics, the calculation passes can be combined for optimal performance.  Improvements to Global Optimization have been made in every release of Strategy to refine querying and decrease execution time.  This article explains how this logic can be applied to calculations of multiple custom group elements.
 
DESCRIPTION
Custom group elements work like individual reports with individual report filters. However with SQL global optimization these filters can be treated similar to metric conditions and apply the same logic which permits metrics with different simple filters to be calculated in the same pass of SQL. This optimization is still limited to simple basic filter qualifications. Any custom group element defined with more advanced filter logic will be unable to apply this optimization and will still calculate its elements in separate passes.
The example below illustrates a report where different custom groups can be optimized.
 
Report template:

ka04W00000148u8QAA_0EM440000002CX1.jpeg

 
SQL View:

ka04W00000148u8QAA_0EM440000002CX4.jpeg

 
If you take a look at the behavior, the SQL is generated optimally for performance by combining both versions of the metric calculation into one pass. 
 
TO LEARN MORE
KB13508  - How does the Global Optimization feature remove unused SQL passes in Strategy SQL Generation Engine?
KB13509  - How does the Global Optimization feature remove duplicate SQL passes in Strategy SQL Generation Engine?
KB13513  - How does the Global Optimization feature merge related SQL passes in Strategy SQL Generation Engine?
KB45719


Comment

0 comments

Details

Knowledge Article

Published:

April 12, 2017

Last Updated:

November 19, 2018