Thanks..Something that i did not know
Rateesh Mohan, March 01, 2004 - 10:42 am UTC
Thanks for taking time to answer the questions
Never knew that fast refresh would not work with conventional DML's . Got to know more about materialized view after going through the documentation
I cannot use both the suggestions since rolling upto the level of posinvoiceno does not help 'much' in reducing the time taken for the reports because in the reports it is further linked to more than 7 tables. Also doing a full refresh every half an hour is also not possible as the refresh it self is taking more than half an hour .
Since I cannot find anyother work around to fullfill my requirements what i am planning to do is to create trigger on the detail table on the fields that i require and make summarized table which contains the joined-aggregated values. Make the reports point to this summary table. What are you thoughts on this ?
Thanks once again
March 01, 2004 - 10:53 am UTC
it'll have an impact on the running application -- both a serialization issue (many rows in the detail point to the same aggregate row, so two users that did not "hit eachother" in the past will start blocking and locking eachother). the trigger itself will impact the overall performance as well. you'll need to watch/measure that impact.
be careful if H.LOCATIONCODE,H.INVOICEDATE are updateable -- the trigger on the details will have to LOCK that record before reading it if so and you'll need to cascade those updates down from the parent to the aggregate tables.
think through all of the concurrency issues (and remember multi-versioning and read consistency)