Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Materialized Views

Materialized Views

From: Ron Thomas <rthomas_at_hypercom.com>
Date: Thu, 31 May 2001 11:57:34 -0700
Message-ID: <F001.00316402.20010531111726@fatcity.com>

I've been expirementing with MV for a couple of days. Interesting gotcha's for fast refresh on
commit, but otherwise cool stuff. Now for the question.

If I have a base table of 1 millions rows of time series data and I want to produce MVs for day,
month, and year aggregates, would it be better to:

  1. base all the MVs back to the original table. Only one mv-log this way but if I ever need to perform a complete refresh, then this would require 3 scan/sort/group of the original table.
  2. base the day MV on the original table, the month MV on the day MV, and the year MV on the month MV. Requires 3 mv-logs but a complete refresh would progressively scan/sort/group less data.

It may just boil down to a matter of taste.

Ron
rthomas_at_hypercom.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Ron Thomas
  INET: rthomas_at_hypercom.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu May 31 2001 - 13:57:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US