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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Calculation fields - views versus cursors

Re: Calculation fields - views versus cursors

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Thu, 19 Jun 2003 08:41:24 -0700
Message-ID: <3EF1D9A4.2DE1A0DF@exxesolutions.com>


Iain Brown wrote:

> In the case where a stored procedure uses a cursor which uses a view, and
> one of the values needed by the procedure is the cursor is a complex
> calcuation of the view's fields.
>
> I was wondering if it was more efficient to do the calculation in the view
> definition or the cursor def.
>
> The procedure isn't called that often, perhaps hourly.
>
> Hope you can help,
>
> Iain

What is most efficient is to take the SQL that created the view and build it into the cursor. Then drop the view.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Thu Jun 19 2003 - 10:41:24 CDT

Original text of this message

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