Fair enough
Printable View
Fair enough
Dave, yes, our fact table is daily partitioned, sitting on separate "monthly" tablespaces (we archive data monthly, so this strategy made sense). Indexes are in the same TS as the partition. Definitely makes life easier.Quote:
Originally Posted by slimdave
That brings up an interesting side point. We currently set up our materialized views to be aggregations of just the fact table (grouping on the FK fields without joining), still needing to join to dimensions at query/reporting time. We've been designing this way in order to save on storage, but we have not yet tested query rewrite (still in design) ... do you see any issues with this - you think we'll still get query rewrite and good performance? I'm guessing so but just haven't tested yet. I wonder if the performance benefit in pre-joining justifies the higher cost in storage (not a lot of budget here).Quote:
Originally Posted by slimdave
Thanks.
That's also what I've been doing :) There's obviously a performance trade-off but the real issue I think is the work to be done in aggregating the data, not in joining it to the dim table (hash joins being pretty zippy). Make sure you have all the constraints and DIMENSION declarations in place and you should be good to go.Quote:
Originally Posted by paulb