dbTalk Databases Forums  

Question for Dave W. and the community

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Question for Dave W. and the community in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim_OLAP
 
Posts: n/a

Default Question for Dave W. and the community - 09-01-2005 , 09:50 AM






Dave,

I still cannot get the aggregations to copy over to the new partition using --

*Clone, CloneMinorChildren*

Is there any way in DSO to explicitly copy the aggregations over to the new
partition?

And on a side note, partitioning is probably the most important performance
feature of AS, and in my opinion, the least understood and documented.

I have had top notch consulting companies build partitioned cubes for me
using just the *Clone* command (not using CloneMinorChildren), and
essentially (and unknowingly) creating huge cubes with no aggregations!!

Frustrated,

Jim


Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Question for Dave W. and the community - 09-02-2005 , 06:15 PM






Here is the code that the Parallel Process Utility uses for incremental
processing of a partition (where it clones a copy of the partition,
processes the temporary partition, and then merges back)
http://www.microsoft.com/downloads/d...DisplayLang=en


Private Sub IncrementalUpdate(ByRef dsoPartition As dso.MDStore, ByRef
dsoCube As dso.MDStore)
Dim dsoClonePartition As dso.MDStore
Dim sClonePartitionName

' Create a temporary partition to store the new data.
' Use the tilde character to indicate to the server
' that the partition is not permanent.
sClonePartitionName = "~Incremental " & dsoPartition.Name
Set dsoClonePartition = dsoCube.MDStores.AddNew(sClonePartitionName)

' Clone the main partition to the temporary one.
dsoPartition.Clone dsoClonePartition, cloneMinorChildren

' We will use the existing partition attributes for:
'
' SourceTable
' FromClause
' JoinClause
' All of the measure names; MemberKeyColumn; MemberNameColumn
'
' These may have encodings for a particular update event. Since we don't
' know what they should be, we'll just use the values for the original
' partition.

' Process the temporary partition.
dsoClonePartition.Process processFull

' Merge the two partitions.
dsoPartition.Merge sClonePartitionName

End Sub







--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Systems Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jim_OLAP" <JimOLAP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Dave,

I still cannot get the aggregations to copy over to the new partition
using --

*Clone, CloneMinorChildren*

Is there any way in DSO to explicitly copy the aggregations over to the
new
partition?

And on a side note, partitioning is probably the most important
performance
feature of AS, and in my opinion, the least understood and documented.

I have had top notch consulting companies build partitioned cubes for me
using just the *Clone* command (not using CloneMinorChildren), and
essentially (and unknowingly) creating huge cubes with no aggregations!!

Frustrated,

Jim




Reply With Quote
  #3  
Old   
Jim_OLAP
 
Posts: n/a

Default Re: Question for Dave W. and the community - 09-06-2005 , 11:04 AM



Dave,

Thanks, but I need the code to clone the aggregations as well !!!

I'm creating new cube partitions (structure and aggregations) based off of
exisitng cube partitions. The code (Clone, CloneMinorchildren) copies the
structure, and changes the source data, and other ancillairy properties, BUT
it does not clone the aggregations!!!

Stuck,

Jim



"Dave Wickert [MSFT]" wrote:

Quote:
Here is the code that the Parallel Process Utility uses for incremental
processing of a partition (where it clones a copy of the partition,
processes the temporary partition, and then merges back)
http://www.microsoft.com/downloads/d...DisplayLang=en


Private Sub IncrementalUpdate(ByRef dsoPartition As dso.MDStore, ByRef
dsoCube As dso.MDStore)
Dim dsoClonePartition As dso.MDStore
Dim sClonePartitionName

' Create a temporary partition to store the new data.
' Use the tilde character to indicate to the server
' that the partition is not permanent.
sClonePartitionName = "~Incremental " & dsoPartition.Name
Set dsoClonePartition = dsoCube.MDStores.AddNew(sClonePartitionName)

' Clone the main partition to the temporary one.
dsoPartition.Clone dsoClonePartition, cloneMinorChildren

' We will use the existing partition attributes for:
'
' SourceTable
' FromClause
' JoinClause
' All of the measure names; MemberKeyColumn; MemberNameColumn
'
' These may have encodings for a particular update event. Since we don't
' know what they should be, we'll just use the values for the original
' partition.

' Process the temporary partition.
dsoClonePartition.Process processFull

' Merge the two partitions.
dsoPartition.Merge sClonePartitionName

End Sub







--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Systems Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jim_OLAP" <JimOLAP (AT) discussions (DOT) microsoft.com> wrote in message
news:8D5C044F-A386-49D5-89C0-5DAC245E878B (AT) microsoft (DOT) com...
Dave,

I still cannot get the aggregations to copy over to the new partition
using --

*Clone, CloneMinorChildren*

Is there any way in DSO to explicitly copy the aggregations over to the
new
partition?

And on a side note, partitioning is probably the most important
performance
feature of AS, and in my opinion, the least understood and documented.

I have had top notch consulting companies build partitioned cubes for me
using just the *Clone* command (not using CloneMinorChildren), and
essentially (and unknowingly) creating huge cubes with no aggregations!!

Frustrated,

Jim





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.