Avatar of netra26
netra26
Flag for Afghanistan asked on

Automate cube processing

I have created a DW DB which has dimension like
USERS -- user_id as PK
ADDRESS --address_id as PK
TIME --date_key as PK
Role dimensions like Deposit Date
And fact tables
Profit
Deposit Withdrawal

Both the dimensions are subject to change say every minute and so are the fact tables. The database has huge amount of data ie., both fact tables have billions of records I want to process the cube so that the users receive the most up to date data.
I have added aggregations and partitions which have improved the performance of the cube.
How can I deal with the slow changing dimensions in this case??
And what are the best practices that I can apply for the performance improvement in this case?
How do I automate the cube processing?
Do I need to create SSIS packages which begin with updating the dimension tables and fact tables followed by processing them and them processing the partitions?
I need all the suggestion from you experts I am new to DW and this is my first project
DatabasesMicrosoft SQL ServerMicrosoft SQL Server 2005SSAS

Avatar of undefined
Last Comment
RWrigley

8/22/2022 - Mon
PedroCGD

You cannot have a dw real-time... you could have near real-time, but never real-time...:-)
So, when you need to process the cube? Each day? each hour?
The automation is by SSIS, right?
do you have partitions for each year? each month?
Cheers!!
PFrog

Dont go down the route of trying to process the cube every x seconds - that's never going to work.

SQL 2005 allows you to set up proactive caching - which basicallly means you link a dimension/fact to a source table. The cube knows when the source table changes and will either retrieve pre-aggregated data from itself, or will go and query the data source for you in order to get the live data.

It's too complex to go into the details in a post here, but here are a few linkks to help you along...

http://msdn.microsoft.com/en-us/library/ms174769.aspx
http://download.microsoft.com/download/8/5/e/85eea4fa-b3bb-4426-97d0-7f7151b2011c/SSAS2005PerfGuide.doc
(page 86)

There's plenty more discussion on it if you Google it.

For this to work, the underlying data source has to be kept up to date - no good if you only populate your data warehouse daily...
You either need to run the cube straight from your OLTP system, or accept that the cube can only ever be as up to date as its source warehouse.
If the ETL load of your warehouse is fully incremental, then there should be very little overhead in running this quite frequently, in which case proactive caching will save you having to process the cube - keeping the whole system available all the time.

On a non-technical front, you've picked a difficult system as your first DW/cube! Make sure your boss understands the complexities of this, and doesn't expect things to work perfectly first time.... I can guarantee that you'll make a few mistakes - that's how we all learn...
netra26

ASKER
Doesn't Proactive Caching impose some kind of overhead burden, either on the OS or the network? And if so, how heavy is that burden? I am currently using developers edition but will there be any impact on the enterprise edition on the live server ?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
PFrog

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RWrigley

I'm a bit confused at this point...it sounds like you're talking about the datawarehouse (the relational system), but then you start talking about Cubes, which is something else entirely.

If you define your CUBE in SSAS to use ROLAP aggregations, then the results from your SSAS analysis will always contain the most up-to-date values from the Data Warehouse that the SSAS cube uses.  The downside is that your report will be slower.  If you use MOLAP or have proactive caching enabled, then the cube will automatically reprocess the cube according to the settings you've defined.  An important note here: if you have MOLAP aggregations, and you make a request for them during a proactive reprocessing, the request will be turned into a ROLAP request against the data warehouse (with the associated processing delay).