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: create view performance problem

Re: create view performance problem

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Sun, 2 May 1999 15:00:45 +0100
Message-ID: <925653865.26944.1.nnrp-13.9e984b29@news.demon.co.uk>


You could cheat, and create a separate table for the max-value information, then write a trigger on the base table that updates the max-value table.

This could, however, have a serious side-effect on the performance, especially if you have a number of concurrent processes updating the base table.

--

Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk

vagelis Hristidis wrote in message <7ghkpn$fqt$1_at_ulysses.noc.ntua.gr>...
>I have a table with columns :symbol, st_date,value
>and I would like to create a view with columns:
>symbol,st_date_for_max_value,max_value
>where there is one row for each stock symbol.
>How can I do it so that it performs well?
>The problem is that sql won't let me use st_date in select clause when i
>don't also put it in group by clause.If I use a pl/sql function it's slow.
Received on Sun May 02 1999 - 09:00:45 CDT

Original text of this message

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