I am working on Universe(s) set up for reporting against a UDB DB2 Data Warehouse.
The DW has all the necessary MQTs set up for our needs and Table Elimination is also set-up for speedy reporting. However, while testing, which has involved analysis of QEPs to likely queries, it has become apparent that MQT redirection and Table Elimination falls over when using sub selects against our Calendar Dimension table (which is joined to our large Fact tables).
If direct matching is applied to say Full_Week in our Calendar table, by placing a condition of Full_Week=200417 then all is OK. However, if a sub-query is applied, by placing a condition of Full_Week IN (SELECT Full_Week FROM WeekRef WHERE …) then both table Elimination and MQT redirection fails.
I know this is more of a DB issue, but it seriously impacts our Universe designs. We are forced in the short term to get re-write all predefined conditions that make use of a sub-query and temporarily hard code them (urrr). You can imagine this is pretty bad for filters such as Last 3 Periods and totally impractical for a Last Week filter. This is no solution to the problem as far as I am concerned.
We faced a similar issue and decided to use @aggregate_awareness instead to force the use of the most beneficial table via universe design (instead of relying on DB2/UDB query rewrite)
I was afraid of that answer… Having said that, I’ve got absolutely no problem making the affected Universe(s) Aggregate Aware. Just got to sell that to a few sceptics!
The next question I have for you then is did you get Table Elimination to work OK? Aggregate Awareness can counter the MQTs being inflexible, but it can’t do anything for Table Elimination.
Yes the very same thing. DB2 may even use the same terminology (I’m not sure) and Table Elimination may simply be the terminology of what is going on in the background. That’s asuming I got the DB2 terminology right in the first place!
Anyway that seems to be what’s going on and that seems to be my problem in a nutshell.