Following up to my previous post, this section looks at what happens under the hood when the logical SQL is executed. the Aggregate Persistence Wizard issues the following logical SQL:
- create aggregates
 
. We will also look at:
- delete aggregates;
 - prepare aggregates
 
Create Aggregates
The built-in Aggregate Manager module performs the following where the “create aggregates” logical SQL is issued:
- Defines Aggregate Creation Plan  
- Phase 1 = dimensions
 - Phase 2 = facts
 
 - Create physical dimension tables
 - Check in and save changes
 - Populate dimension tables  
- Example: SET VARIABLE DISABLE_CACHE_HIT=1, DISABLE_CACHE_SEED=1; populate "AG_Detail_000153B1" mode ( append table connection pool "OBIEE Local DB"."OBIEE - Connection Pool") as select_business_model "Dim - Source"."Source_Type" as "Source_Typ000153A2","Dim - Source"."Segment" as "Segment000153A3", RCOUNT (1) as "Detail__000153B1SK" from "Use Case 1: Calcul Parc";
 
 - Create logical table sources and set to state to Active
 - Check in and save changes
 - Create physical fact table
 - Check in and save changes
 - Populate physical fact with populate command (similar to above example)
 - Create fact LTS and set state to Active
 - Check in and Save Changes
 
-------------------- Aggregate Manager: *******BEGIN: Create Aggregates*******
-------------------- Aggregate Manager: *******END: Create Aggregates*******
Delete Aggregates
The built-in Aggregate Manager module performs the following where the “delete aggregates” logical SQL is issued:
- Deletes logical table sources for aggregate tables
 - Checks in changes and saves RPD
 - Drops physical db tables
 - Deletes physical layer tables
 - Checks in changes and save RPD
 
These actions are visible in the query log identified by:
-------------------- Aggregate Manager: *******BEGIN: Delete Aggregates*******
-------------------- Aggregate Manager: *******END: Delete Aggregates*******
prepare aggregates
Similar to create aggregates without the populate scripts
The populate command
Perhaps this can be used for an aggregate refresh script.
No comments:
Post a Comment