dbTalk Databases Forums  

multiple tuples in a single UPDATE CUBE

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


Discuss multiple tuples in a single UPDATE CUBE in the microsoft.public.sqlserver.olap forum.



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

Default multiple tuples in a single UPDATE CUBE - 01-26-2004 , 02:00 PM






Back in Aug 2003 George Spofford said updating multiple tuples with a
single UPDATE CUBE statement was not implemented (snippet below). Has
this been improved this or must we still go through a round-trip for
each bit of data? I'm using XMLA and the overhead is killing my
performance.

If the latter, is there a better way to update multiple cells with a
single network operation other than going to the raw fact table directly?
The use case would be something like updating Sales for the whole time
horizon (Jan -> Dec).

TIA

-zoltan

Copied post:

Multiple values in one statement is documented but not implemented.

Paulo Monteiro wrote:

Quote:
Another question for you George. The BNF for the update cube statement
indicates that it should be possible to update more than one tuple
with a
single statement. I'm trying the construction bellow but the engine is
complying about the comma between the two tuples assignments.

UPDATE CUBE
[Budget]
SET
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250045]) = 0,
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250046]) = 0

Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: multiple tuples in a single UPDATE CUBE - 01-26-2004 , 09:47 PM






By "has this been improved" I interpret your question as "was it changed in
one of the Analysis Services 2000 service packs". The answer is no.
There is an efficient way to do it through OLEDB, but since you are using
XMLA - you don't have a good solution other then writing some custom code to
handle it.
BTW - what is your scenario that you need to do writebacks over XMLA, and
you cannot use OLEDB ?

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"Zoltan Grose" <zgrose (AT) mac (DOT) com> wrote

Quote:
Back in Aug 2003 George Spofford said updating multiple tuples with a
single UPDATE CUBE statement was not implemented (snippet below). Has
this been improved this or must we still go through a round-trip for
each bit of data? I'm using XMLA and the overhead is killing my
performance.

If the latter, is there a better way to update multiple cells with a
single network operation other than going to the raw fact table directly?
The use case would be something like updating Sales for the whole time
horizon (Jan -> Dec).

TIA

-zoltan

Copied post:

Multiple values in one statement is documented but not implemented.

Paulo Monteiro wrote:

Another question for you George. The BNF for the update cube statement
indicates that it should be possible to update more than one tuple
with a
single statement. I'm trying the construction bellow but the engine is
complying about the comma between the two tuples assignments.

UPDATE CUBE
[Budget]
SET
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250045]) = 0,
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250046]) = 0



Reply With Quote
  #3  
Old   
Zoltan Grose
 
Posts: n/a

Default Re: multiple tuples in a single UPDATE CUBE - 01-26-2004 , 10:15 PM



Quote:
BTW - what is your scenario that you need to do writebacks over XMLA, and
you cannot use OLEDB ?
I am writing Java middleware that services both Essbase and MSAS. I
probably could write an IIS app and forward MSAS requests to that
secondary webapp (and bypass XMLA altogether for that matter) but I'd
rather avoid coding both a Java and .NET app if possible. XMLA serves me
so well for everything except the writeback.

-zoltan


Mosha Pasumansky [MS] <moshap (AT) online (DOT) microsoft.com> wrote:

Quote:
By "has this been improved" I interpret your question as "was it changed in
one of the Analysis Services 2000 service packs". The answer is no.
There is an efficient way to do it through OLEDB, but since you are using
XMLA - you don't have a good solution other then writing some custom code to
handle it.
BTW - what is your scenario that you need to do writebacks over XMLA, and
you cannot use OLEDB ?

Reply With Quote
  #4  
Old   
Frank Samuel
 
Posts: n/a

Default Re: multiple tuples in a single UPDATE CUBE - 01-28-2004 , 10:02 AM



Hi Mosha,
what's the "efficient way to do it through OLEDB"?

Thanks
Frank

"Mosha Pasumansky [MS]" <moshap (AT) online (DOT) microsoft.com> wrote

Quote:
By "has this been improved" I interpret your question as "was it changed
in
one of the Analysis Services 2000 service packs". The answer is no.
There is an efficient way to do it through OLEDB, but since you are using
XMLA - you don't have a good solution other then writing some custom code
to
handle it.
BTW - what is your scenario that you need to do writebacks over XMLA, and
you cannot use OLEDB ?

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"Zoltan Grose" <zgrose (AT) mac (DOT) com> wrote in message
news:20040126120041580-0800 (AT) msnews (DOT) microsoft.com...
Back in Aug 2003 George Spofford said updating multiple tuples with a
single UPDATE CUBE statement was not implemented (snippet below). Has
this been improved this or must we still go through a round-trip for
each bit of data? I'm using XMLA and the overhead is killing my
performance.

If the latter, is there a better way to update multiple cells with a
single network operation other than going to the raw fact table
directly?
The use case would be something like updating Sales for the whole time
horizon (Jan -> Dec).

TIA

-zoltan

Copied post:

Multiple values in one statement is documented but not implemented.

Paulo Monteiro wrote:

Another question for you George. The BNF for the update cube statement
indicates that it should be possible to update more than one tuple
with a
single statement. I'm trying the construction bellow but the engine is
complying about the comma between the two tuples assignments.

UPDATE CUBE
[Budget]
SET
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250045]) = 0,
([Version].[Budget],[Period].[Months].[Jan
01],[Unit].[10002030],[Account].[4250046]) = 0





Reply With Quote
  #5  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: multiple tuples in a single UPDATE CUBE - 02-02-2004 , 02:23 PM



"Frank Samuel" <FSamuel_nospam (AT) misag_remove_spam (DOT) com> wrote

Quote:
Hi Mosha,
what's the "efficient way to do it through OLEDB"?
Updating the cellset directly (i.e. by getting IUpdateRowset from
IMDDataSet) is the most efficient. But even doing UPDATE CUBE statements in
OLEDB is more efficient then in XMLA, because they don't translate into
roundtrips.

--
==================================================
Mosha Pasumansky - http://www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




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.