partition based refresh for informix warehouse accelerator
DESCRIPTION
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.TRANSCRIPT
Session A14 1
Informix Database Server
Informix warehouse Accelerator
BI Applications
Step 1. Install, configure,start Informix
Step 2. Install, configure,start Accelerator
Step 3. Connect Studio to Informix & add accelerator
Step 4. Design, validate, Deploy Data mart
Step 5. Load data to accelerator
Ready for Queries
IBM Smart Analytics Studio
Step 1
Step 2
Step 3
Step 4
Step 5
Ready
Informix Ultimate Warehouse edition
Session A14 2
Informix Database Server
BI Applications
Step 1. Create the Sales-Mart and load it. Sales is the facttable -- range partitioned.
Step 2. Load jobs update the fact table “sales”Only updates existing partition
Step 3. Identify the partition,execute dropPartMart().
Step 4. for same partition,execute loadPartMart().
Ready for Queries
IBM Smart Analytics Studio or stored procedures or command line toolStep 1
Step 4
Step 2
Step 3
Ready
Case 1: Partition refresh: Updates to existing Partitions
Sales-Mart
salescustomer
stores
IWA
OLTP Apps
partitioned fact table
SQL Script: call Stored procedure
Modified partition
INSERT, UPDATE, DELETE
Session A14 3
week1 week2 week3
working window
Time cyclic data managementPartitioned fact table, partitioned by
week
Session A14 4
week1 week2 week3 week4
working window
Time cyclic data managementPartitioned fact table, partitioned by
week
DETACHweek1 partition
ATTACH week4partition
Session A14 5
week1 week2 week3 week4 week6
working window
Time cyclic data management with IWA
Partitioned fact table, partitioned by week
DETACH partition
ATTACH partition
1. Execute dropPartMart on IWA2. DETACH partition from the table
a. ATTACH the partitionb. Execute loadPartMart() on IWA
Session A14 6
Informix Database Server
BI Applications
Step 1. Create the Sales-Mart and load it. Sales is the facttable -- range partitioned.
Need to move the Time window to next range.
Step 2. DETACH operationa. Execute dropPartMart()b. DETACH the partition
Step 3. ATTACH operationa. ATTACH the partitionb. Execute loadPartMart()
Ready for Queries
IBM Smart Analytics Studio or stored procedures or command line toolStep 1
Step 3Step 2
Ready
Case 2: Partition refresh: Time Cyclic data management
Sales-Mart
salescustomer
stores
IWA
OLTP Apps
partitioned fact table
Move the window.
Session A14 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 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().