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

Home -> Community -> Usenet -> c.d.o.server -> Re: Warehousing : Constraints

Re: Warehousing : Constraints

From: Howard J. Rogers <dba_at_hjrdba.com>
Date: Fri, 16 Nov 2001 07:23:31 +1100
Message-ID: <3bf4246c$0$10835$afc38c87@news.optusnet.com.au>


The fact thatg 9i now allows you to put constraints on views (albeit disabled and not validated) is a clear indication that data warehouses need constraints defined left, right and centre. The point of the new feature was that data warehouses often used views and Materialized Views to speed things up -but that left the optimiser completely blind to the relationships between the underlying tables, and hence resulted in sub-optimal execution plans.

Now that you can create purely declarative constraints on the views involved, the optimizer has a much better chance of getting it right.

So, yes: you need constraints.

Regards
HJR

--
Resources for Oracle: http://www.hjrdba.com
===============================


"Billy Verreynne" <vslabs_at_onwe.co.za> wrote in message
news:9svron$3sf$1_at_ctb-nnrp2.saix.net...

> Are constraints (especially foreign key constraints vs. indexes) a good or
bad
> idea in data warehousing?
>
> Or does this come down to a purist vs. non-purist view?
>
>
>
> --
> Billy
>
>
>
>
>
Received on Thu Nov 15 2001 - 14:23:31 CST

Original text of this message

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