Good day,
I have a very simple model with 3 tables (using Oracle), Dim1, Dim2, Fact1. Dim1 and Fact 1 have a 1..n relationship, so do Dim2 and Fact 1. I've created a Physical Layer, a Logical Layer and a Dimensional Layer of the 3 objects. I defined the relationships in the Physical Layer. In the Dimensional model, Dim1 and Dim 2 do not have hierarchies, just one level (I just have dates, I didn't bother bringing Months and Years). Fact1 just have one measure with a default aggregation set to Sum. Other than using DQM, everything else is using the default Cognos settings.
When I create a report, something unexpected happens. Instead of just creating a simple query (select data_items from Dim1, Dim2, Fact1 where Fact1.col1=Dim1.col1 and Fact1.col2=Dim2.col2) with the three tables to retrieve the data, Cognos first do a "select * from Dim1", then do the query above with the 3 tables to retrieve the data. I can only assume it does some sort of stitching because the last query is resolved in 1 sec in Oracle but takes 5 minutes in Cognos.
Troubleshooting the issue, I used objects from the Physical Layer to create a report and got the expected simple query. Same behavior using the Logical Layer. It's only when I'm using the Dimensional objects that things get wonky.
What am I missing or what have I not set properly in Cognos?
Thanks for your answers in advance!