COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: dssd on 26 Aug 2011 12:39:10 PM

Title: Relationships - Framework Manager
Post by: dssd on 26 Aug 2011 12:39:10 PM
Is it ok to only put relationships in Business view. I have a set where there are no relationships in data source views?
Title: Re: Relationships - Framework Manager
Post by: Lynn on 26 Aug 2011 01:05:02 PM
Take a look at chapter 8 in the FM user guide. There is a section called "Where Should You Create Relationships and Determinants?"

The answer (of course) is "It Depends..."

Generally speaking, creating the relationships in the data source layer will result in minimized SQL while relationships in the business layer will give you SQL generated as a view. The difference between these two situations is also explained in the user guide.
Title: Re: Relationships - Framework Manager
Post by: dssd on 26 Aug 2011 01:42:04 PM
Thanks. Also had one more question. My FM has a determinent, but there is only one level. A determinent defined for a SystemID.  Does it serve any purpose? I thought it makes sense to have multi llevel like year, month, date.
Title: Re: Relationships - Framework Manager
Post by: Lynn on 26 Aug 2011 01:58:07 PM
There was a rather in depth discussion on that topic here:

http://www.cognoise.com/community/index.php/topic,11557.0.html
Title: Re: Relationships - Framework Manager
Post by: dssd on 26 Aug 2011 04:33:57 PM
One more query. I have facts which are linked to many different query subjects...In some relationships, fact is 1..1  to 0..n and in some cases 1..n to 1..1 ...so it is ambiguous...I believe this causes ambiguous results and performance issues. Is that correct
Title: Re: Relationships - Framework Manager
Post by: blom0344 on 29 Aug 2011 04:09:24 PM
No , a fact may have a non-mandatory FK demanding an outer join to prevent data-loss. If the FK is mandatory a straight (inner) join can be modelled. So,you may need both scenarios.
Outer joins can degrade performance, but may be unavoidable
Title: Re: Relationships - Framework Manager
Post by: dssd on 29 Aug 2011 06:57:10 PM
Bloom, what i meant was on occasions the fact has a n on its side and on other occasions a 1or 0 on its side..........So if A is related to B, at times its n..1 and on other occasions its the other way round 1..n

Is that a bad practice to keep as it is?  What do we do in such occasions