Re: Refresh Materialized view manually
Date: Wed, 3 Jun 2009 08:34:27 -0700 (PDT)
On Jun 3, 3:53 am, Randolf Geist <mah..._at_web.de> wrote:
> > We refresh this view every 30 seconds automatically.
> > Sometimes underlying tables will be updated by users and they want to
> > generate a report right away with the updated data.
> > They don't want to wait next 30 seconds, for the latest data. So want
> > to provide a manually refresh so that latest data will updated in
> > materialized view.
> although I second the doubts that this design is sound, if you really
> have the need for "real-time" refreshes why not go for the ON COMMIT
> refresh clause of the materialized view?
> Oracle related stuff blog:http://oracle-randolf.blogspot.com/
> SQLTools++ for Oracle (Open source Oracle GUI for Windows):http://www.sqltools-plusplus.org:7676/http://sourceforge.net/projects/sqlt-pp/
Depending upon how long the refresh actually takes, using the ON COMMIT refresh option can increase the time required to complete the insert/update/delete transactions to the defining tables, which may be an unacceptable option especially if this is an OLTP system. Granted a 30-second refresh schedule is (in my mind) ridiculous, but using ON COMMIT may slow down transactions to an unacceptable level.
Of course we know nothing of this system outside of the 30-second refresh schedule for a materialized view for which we have no definition.
David Fitzjarrell Received on Wed Jun 03 2009 - 10:34:27 CDT