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 -> slow performance in query a view

slow performance in query a view

From: Chong Pok <chongpok18_at_hotmail.com>
Date: Thu, 18 Sep 2003 18:41:49 +0800
Message-ID: <3f698bf0$1@shknews01>


I have created a view and try to execute a select + group by query of the view. However, the performance is very slow. select emp_no from v_emp group by emp_no

However, if I create a temp. table first and create an index. The performance is far more better.
create table test as select emp_no from v_emp; create index ix_test on test(emp_no);
select emp_no from test group by emp_no; The total time is much shorter

I wonder whether Oracle can take advantage of the underlying table index of the view? What's the proper implementation in query such kind of view?

Many thanks Received on Thu Sep 18 2003 - 05:41:49 CDT

Original text of this message

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