RE: Why does my virtual cube always get processed (OLAP 2000) -
08-29-2006
, 02:30 AM
Hello Fergus,
Thank you for your reply and I understand you do not want to virtual cube
to be processed automatically when any underlying cube is processed.
Based on my test, there is no method to change this behavior in Analysis
Manager. However, you may be able to process the partitions of the normal
cubes independently and or shared dimensions and then you could process
virtual cube afterwards.
I tried to use 4 DTS "Analysis services processing task". The first 3 are
used to process the partitions of sales cube partition and warehouse
partitions. The last one is to process virtual cube "warehouse and sales"
of foodmart sample database. I use "on completion" workflow to make the
process in sequence, and it works fine. The following is the log of the
processing:
8/29/2006 3:01:32 PM 2245
8/29/2006 3:01:32 PM 2245
8/29/2006 3:01:32 PM 2245
************************************************** ************************
8/29/2006 3:01:32 PM 2245 *
8/29/2006 3:01:32 PM 2245 * Processing Database 'FoodMart 2000'
8/29/2006 3:01:32 PM 2245 * Server: SHA-2003
8/29/2006 3:01:32 PM 2245 * User:
8/29/2006 3:01:32 PM 2245 * Time Processing started: 8/29/2006 3:01:32 PM
8/29/2006 3:01:32 PM 2245 * Log ID: 2245
8/29/2006 3:01:32 PM 2245 *
8/29/2006 3:01:32 PM 2245
************************************************** ************************
8/29/2006 3:01:32 PM 2245
8/29/2006 3:01:32 PM 2245
8/29/2006 3:01:32 PM 2245
8/29/2006 3:01:32 PM 2245 Initiating transaction in Database 'FoodMart 2000'
8/29/2006 3:01:32 PM 2245 Processing Partition 'Sales' Start time:
3:01:32 PM
8/29/2006 3:01:32 PM 2245 Initializing Partition 'Sales'
8/29/2006 3:01:33 PM 2245 Partition 'Sales' Execute : SELECT
"store"."store_id", "time_by_day"."quarter", "time_by_day"."month_of_year",
"product"."product_id", "promotion"."media_type",
"promotion"."promotion_name", "customer"."customer_id",
"customer"."education", "customer"."gender", "customer"."marital_status",
"customer"."yearly_income", "sales_fact_1997"."unit_sales",
"sales_fact_1997"."store_cost", "sales_fact_1997"."store_sales",
"sales_fact_1997"."product_id",
"sales_fact_1997"."store_sales"-"sales_fact_1997"."store_cost" FROM
"sales_fact_1997", "time_by_day", "store", "product", "promotion",
"customer" WHERE ("time_by_day"."the_year"=?) AND
("sales_fact_1997"."time_id"="time_by_day"."time_i d") AND
("sales_fact_1997"."store_id"="store"."store_id ") AND
("sales_fact_1997"."product_id"="product"."product _id") AND
("sales_fact_1997"."promotion_id"="promotion"."pro motion_id") AND
("sales_fact_1997"."customer_id"="customer"."custo mer_id")
8/29/2006 3:01:38 PM 2245 Writing data of Partition 'Sales'
(segment 1). Rows processed: 86837
8/29/2006 3:01:39 PM 2245 Writing aggregations and indexes of
Partition 'Sales' (segment 1)
8/29/2006 3:01:39 PM 2245 Writing aggregations and indexes of
Partition 'Sales' (segment 2)
8/29/2006 3:01:39 PM 2245 Completed Processing Partition 'Sales'. End
time: 3:01:39 PM Duration: 0:00:07 Rows processed: 86837
8/29/2006 3:01:39 PM 2245 Committing transaction in Database 'FoodMart
2000'
8/29/2006 3:01:39 PM 2245 Committed transaction in Database 'FoodMart 2000'
8/29/2006 3:01:40 PM 29225
8/29/2006 3:01:40 PM 29225
8/29/2006 3:01:40 PM 29225
************************************************** ************************
8/29/2006 3:01:40 PM 29225 *
8/29/2006 3:01:40 PM 29225 * Processing Database 'FoodMart 2000'
8/29/2006 3:01:40 PM 29225 * Server: SHA-2003
8/29/2006 3:01:40 PM 29225 * User:
8/29/2006 3:01:40 PM 29225 * Time Processing started: 8/29/2006 3:01:40
PM
8/29/2006 3:01:40 PM 29225 * Log ID: 29225
8/29/2006 3:01:40 PM 29225 *
8/29/2006 3:01:40 PM 29225
************************************************** ************************
8/29/2006 3:01:40 PM 29225
8/29/2006 3:01:40 PM 29225
8/29/2006 3:01:40 PM 29225
8/29/2006 3:01:40 PM 29225 Initiating transaction in Database 'FoodMart
2000'
8/29/2006 3:01:40 PM 29225 Processing Partition 'Warehouse' Start time:
3:01:40 PM
8/29/2006 3:01:40 PM 29225 Initializing Partition 'Warehouse'
8/29/2006 3:01:40 PM 29225 Partition 'Warehouse' Execute : SELECT
"store"."store_id", "time_by_day"."quarter", "time_by_day"."month_of_year",
"warehouse"."warehouse_id", "product"."product_id",
"inventory_fact_1997"."store_invoice", "inventory_fact_1997"."supply_time",
"inventory_fact_1997"."warehouse_cost",
"inventory_fact_1997"."warehouse_sales",
"inventory_fact_1997"."units_shipped",
"inventory_fact_1997"."units_ordered",
"inventory_fact_1997"."warehouse_sales"-"inventory_fact_1997"."warehouse_Cos
t" FROM "inventory_fact_1997", "time_by_day", "store", "warehouse",
"product" WHERE ("time_by_day"."the_year"=?) AND
("inventory_fact_1997"."time_id"="time_by_day"."ti me_id") AND
("inventory_fact_1997"."store_id"="store"."store_i d") AND
("inventory_fact_1997"."warehouse_id"="warehouse". "warehouse_id") AND
("inventory_fact_1997"."product_id"="product"."pro duct_id")
8/29/2006 3:01:40 PM 29225 Writing data of Partition 'Warehouse'
(segment 1). Rows processed: 4070
8/29/2006 3:01:40 PM 29225 Writing aggregations and indexes of
Partition 'Warehouse' (segment 1)
8/29/2006 3:01:40 PM 29225 Completed Processing Partition 'Warehouse'.
End time: 3:01:40 PM Duration: 0:00:00 Rows processed: 4070
8/29/2006 3:01:40 PM 29225 Committing transaction in Database 'FoodMart
2000'
8/29/2006 3:01:41 PM 29225 Committed transaction in Database 'FoodMart 2000'
8/29/2006 3:01:41 PM 28326
8/29/2006 3:01:41 PM 28326
8/29/2006 3:01:41 PM 28326
************************************************** ************************
8/29/2006 3:01:41 PM 28326 *
8/29/2006 3:01:41 PM 28326 * Processing Database 'FoodMart 2000'
8/29/2006 3:01:41 PM 28326 * Server: SHA-2003
8/29/2006 3:01:41 PM 28326 * User:
8/29/2006 3:01:41 PM 28326 * Time Processing started: 8/29/2006 3:01:41
PM
8/29/2006 3:01:41 PM 28326 * Log ID: 28326
8/29/2006 3:01:41 PM 28326 *
8/29/2006 3:01:41 PM 28326
************************************************** ************************
8/29/2006 3:01:41 PM 28326
8/29/2006 3:01:41 PM 28326
8/29/2006 3:01:41 PM 28326
8/29/2006 3:01:41 PM 28326 Initiating transaction in Database 'FoodMart
2000'
8/29/2006 3:01:41 PM 28326 Processing Partition 'warehouse 98' Start
time: 3:01:41 PM
8/29/2006 3:01:41 PM 28326 Initializing Partition 'warehouse 98'
8/29/2006 3:01:42 PM 28326 Partition 'warehouse 98' Execute :
SELECT "store"."store_id", "time_by_day"."quarter",
"time_by_day"."month_of_year", "warehouse"."warehouse_id",
"product"."product_id", "inventory_fact_1998"."store_invoice",
"inventory_fact_1998"."supply_time",
"inventory_fact_1998"."warehouse_cost",
"inventory_fact_1998"."warehouse_sales",
"inventory_fact_1998"."units_shipped",
"inventory_fact_1998"."units_ordered",
"inventory_fact_1998"."warehouse_sales"-"inventory_fact_1998"."warehouse_Cos
t" FROM "inventory_fact_1998", "time_by_day", "store", "warehouse",
"product" WHERE ("time_by_day"."the_year"=?) AND
("inventory_fact_1998"."time_id"="time_by_day"."ti me_id") AND
("inventory_fact_1998"."store_id"="store"."store_i d") AND
("inventory_fact_1998"."warehouse_id"="warehouse". "warehouse_id") AND
("inventory_fact_1998"."product_id"="product"."pro duct_id")
8/29/2006 3:01:42 PM 28326 Writing data of Partition 'warehouse 98'
(segment 1). Rows processed: 7282
8/29/2006 3:01:42 PM 28326 Writing aggregations and indexes of
Partition 'warehouse 98' (segment 1)
8/29/2006 3:01:42 PM 28326 Completed Processing Partition 'warehouse
98'. End time: 3:01:42 PM Duration: 0:00:01 Rows processed: 7282
8/29/2006 3:01:42 PM 28326 Committing transaction in Database 'FoodMart
2000'
8/29/2006 3:01:42 PM 28326 Committed transaction in Database 'FoodMart 2000'
8/29/2006 3:01:43 PM 5193
8/29/2006 3:01:43 PM 5193
8/29/2006 3:01:43 PM 5193
************************************************** ************************
8/29/2006 3:01:43 PM 5193 *
8/29/2006 3:01:43 PM 5193 * Processing Database 'FoodMart 2000'
8/29/2006 3:01:43 PM 5193 * Server: SHA-2003
8/29/2006 3:01:43 PM 5193 * User:
8/29/2006 3:01:43 PM 5193 * Time Processing started: 8/29/2006 3:01:43 PM
8/29/2006 3:01:43 PM 5193 * Log ID: 5193
8/29/2006 3:01:43 PM 5193 *
8/29/2006 3:01:43 PM 5193
************************************************** ************************
8/29/2006 3:01:43 PM 5193
8/29/2006 3:01:43 PM 5193
8/29/2006 3:01:43 PM 5193
8/29/2006 3:01:43 PM 5193 Initiating transaction in Database 'FoodMart 2000'
8/29/2006 3:01:43 PM 5193 Processing Cube 'Warehouse and Sales' Start
time: 3:01:43 PM
8/29/2006 3:01:44 PM 5193 Initializing Cube 'Warehouse and Sales'
8/29/2006 3:01:44 PM 5193 Completed Processing Cube 'Warehouse and
Sales'. End time: 3:01:44 PM Duration: 0:00:01
8/29/2006 3:01:44 PM 5193 Committing transaction in Database 'FoodMart
2000'
8/29/2006 3:01:44 PM 5193 Committed transaction in Database 'FoodMart 2000'
8/29/2006 3:05:28 PM 10355
You may also use DSO to write some code to process cube partitions/shared
dimensions other than cube itself.
Also, if you only create virtual cube and select not process it, this
virtual cube will not be processed when the underlying normal cubes are
processed.
Hope this is helpful. If you have any comments or questions, please let's
know. Thanks.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ==== |