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: Partitioned view problem

Re: Partitioned view problem

From: Nighr <nighr_at_aol.com>
Date: 1997/12/28
Message-ID: <19971228234700.SAA14362@ladder01.news.aol.com>#1/1

In article <66mr6r$s5u$1_at_news.worldonline.nl>, "Wilhelm Thieme" <w.thieme_at_consunet.nl> writes:

>Subject: Partitioned view problem

 From: "Wilhelm Thieme"
><w.thieme_at_consunet.nl>

Date: Wed, 10 Dec 1997 20:39:31 +0100

Hi
>everyone

I'm struggeling with a partitioned view which will NOT give me the
>performance as expected.

The view is created as follows:
create or replace
>view temp as

 select * from table_19971118 where
>date_col=to_date('19971118','yyyymmdd')
union all
select * from
>table_19971119 where date_col=to_date('19971118','yyyymmdd')
union all
select
>* from table_19971120 where date_col=to_date('19971118','yyyymmdd')
 union
>all

 select * from table_19971121 where
>date_col=to_date('19971118','yyyymmdd')
/

I would assign the test date to a variable. Functions in WHERE statements usually cause full table scans. Also I'd check if date_col is indexed.

Just my two cents worth,
--Bob. Received on Sun Dec 28 1997 - 00:00:00 CST

Original text of this message

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