Appropriate use of materialized views
2 posters
Page 1 of 1
Appropriate use of materialized views
We are experiencing some IO opportunities and the DBA (Oracle) team is suggesting that we make more use of materialized views. I am not well versed or experienced with these and am looking for some advice regarding when to use / not use. Not sure if this is the most appropriate category for this question or not.
peggy_ratt- Posts : 2
Join date : 2009-04-20
Location : Lewisville, TX
Re: Appropriate use of materialized views
I use materialized views for years in data marts. They are suitable when there are not a lot of data, the queries are simple and, of course, no SCD. In other words, when delete (truncate) and insert work faster then a complicated logic of incremental update. It's also useful when you build a prototype to provide something to report developers quickly.
When there is a complex query then a table and a refresh procedure is definitly better.
There are also materialized queries limitaions. Just not all queries will work for materialized views but work fine in insert... select.
Sometimes (Oracle 9i, Solaris) after an unsignificant change in the tables used in the query the materialized view can not be refreshed and should be recreated from scratch.
When there is a complex query then a table and a refresh procedure is definitly better.
There are also materialized queries limitaions. Just not all queries will work for materialized views but work fine in insert... select.
Sometimes (Oracle 9i, Solaris) after an unsignificant change in the tables used in the query the materialized view can not be refreshed and should be recreated from scratch.
Kateryna- Posts : 5
Join date : 2009-05-05
Re: Appropriate use of materialized views
so, is it appropriate to say that materialized views work best with smaller tables and with queries that are static? One of our challenges is that our users have ad-hoc access to run reports and we cannot predict many of the queries that will execute.
peggy_ratt- Posts : 2
Join date : 2009-04-20
Location : Lewisville, TX
Re: Appropriate use of materialized views
Well, I mentioned using materialized views only as a basis for dimensions and fact tables instead of usual tables. There is an other implementation of materialized views in ad-hoc queries or regular reports for query rewrites. But it's a different story. If you can not predict an ad-hoc query you can not create a materialized view to rewrite it. In the opposite, if you have a "hard-coded" report you can create a materialized view for rewriting of aggregations and still have an ability to drill to details in an original transactional fact table
Kateryna- Posts : 5
Join date : 2009-05-05
Similar topics
» Materialized Views vs. Tables
» Understanding Materialized Views as aggregate tables
» Creating materialized view of snowflaked dimensions
» Views as facttables
» Alternative views of data
» Understanding Materialized Views as aggregate tables
» Creating materialized view of snowflaked dimensions
» Views as facttables
» Alternative views of data
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|