dbTalk Databases Forums  

Generate Vs. CrossJoin

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


Discuss Generate Vs. CrossJoin in the microsoft.public.sqlserver.olap forum.



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

Default Generate Vs. CrossJoin - 03-25-2005 , 09:16 AM






Hi,

Is there a difference, in terms of performance, between CrossJoin and
Generate, when getting the cross-product of two sets?

CrossJoin([Set1], [Set2])

Vs.

Generate([Set1], CrossJoin({[Set1].Current}, [Set2]), ALL)

Thanks.

John.



Reply With Quote
  #2  
Old   
Richard Tkachuk [MSFT]
 
Posts: n/a

Default Re: Generate Vs. CrossJoin - 04-04-2005 , 01:08 PM






Yes.

Why take the overhead of unioning the generate results when a simple cross
product is sufficient?

--
_______________
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.

"John" <nospam> wrote

Quote:
Hi,

Is there a difference, in terms of performance, between CrossJoin and
Generate, when getting the cross-product of two sets?

CrossJoin([Set1], [Set2])

Vs.

Generate([Set1], CrossJoin({[Set1].Current}, [Set2]), ALL)

Thanks.

John.




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.