With Informix 11.70.FC5, you can refresh only the modified/new partitions to Informix Warehouse Accelerator. This presentation shows the two use cases for it.
Partition based refresh for Informix Warehouse Accelerator.
1. Informix Ultimate Warehouse edition IBM Smart Analytics
Studio
Step 1. Install, configure,
start Informix
Step 2. Install, configure, Step 3
start Accelerator
Step 1
Step 3. Connect Studio to
Informix & add accelerator
Step 4
Informix Database Server
Step 4. Design, validate,
Deploy Data mart
Step 5
Step 5. Load data to
accelerator
Ready for Queries
BI Applications
Step 2
Ready
Informix warehouse Accelerator
Session A14 1
2. Case 1: Partition refresh: Updates to existing Partitions IBM Smart Analytics
Step 1. Create the Sales-Mart Studio or stored
and load it. Sales is the fact partitioned fact table procedures or
table -- range partitioned. command line tool
Step 2. Load jobs
update the fact table “sales” Step 1
Only updates existing partition customer
Step 2 sales
Step 3. Identify the partition,
execute dropPartMart(). Modified partition
SQL Script: call
Stored procedure
Step 4. for same partition,
execute loadPartMart(). stores
Step 3 Step 4
Informix Database Server
Ready for Queries
INSERT, UPDATE, DELETE
BI Applications
IWA
Sales-Mart Ready
OLTP Apps
Session A14 2
3. Time cyclic data management
Partitioned fact table, partitioned by week
working window
week1 week2 week3
Session A14 3
4. Time cyclic data management
Partitioned fact table, partitioned by week
working window
week1 week2 week3 week4
DETACH ATTACH
week1 week4
partition partition
Session A14 4
5. Time cyclic data management with IWA
Partitioned fact table, partitioned by week
working window
week1 week2 week3 week4 week6
DETACH ATTACH
partition partition
1. Execute dropPartMart on IWA
a. ATTACH the partition
2. DETACH partition from the table
b. Execute loadPartMart() on IWA
Session A14 5
6. Case 2: Partition refresh: Time Cyclic data management IBM Smart Analytics
Step 1. Create the Sales-Mart Studio or stored
and load it. Sales is the fact partitioned fact table procedures or
table -- range partitioned. command line tool
Need to move the Time
window to next range. Step 1
customer
Step 2. DETACH operation
sales
b. Execute dropPartMart()
Move the window.
c. DETACH the partition
Step 3. ATTACH operation
a. ATTACH the partition stores
b. Execute loadPartMart() Step 2 Step 3
Informix Database Server
Ready for Queries
BI Applications
IWA
Sales-Mart Ready
OLTP Apps
Session A14 6
7. dropPartMart() procedure
1. Uses the accelerator name, datamart name, table
name and partition name.
Partition name can be the name of the partition or
partition number (sysfragments.partn)
The partition name or number should be a valid
partition for the table.
Call dropPartMart() first before doing the DEATCH
Session A14 7
8. loadPartMart() procedure
1. Uses the accelerator name, datamart name, table
name and partition name.
Partition name can be the name of the partition or
partition number (sysfragments.partn)
The partition name or number should be a valid
partition for the table.
ATTACH the partition first, before calling
loadPartMart().
Session A14 8
Editor's Notes
execute function dropPartMart(’myAccelerator’,’myMart’,’user10’,’tab22’,’part1’); execute function loadPartMart(’myAccelerator’,’myMart’,’user10’,’tab22’,’part1’);
execute function dropPartMart(’myAccelerator’,’myMart’,’user10’,’tab22’,’part1’); execute function loadPartMart(’myAccelerator’,’myMart’,’user10’,’tab22’,’part1’);