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: View performance

Re: View performance

From: Chris Hamilton <toneczar_at_erols.com>
Date: Tue, 02 Jun 1998 12:58:35 GMT
Message-ID: <6l0sv5$h4c$4@goo.nwd.usace.army.mil>


"Martin Dick" <martin.dick_at_neis.com.au> wrote:

>stegri_at_rocketmail.com wrote ...

>| Does anybody know if using views instead of tables affects performance?
>| I've heard that view are in some way 'compiled' (although I don't
>| understand what is there to be compiled) and are even more efficient
>| than retriving columns as 'normal' select-stmts.

>As far as I know, the only real advantage in using a view is that the SQL is
>maintained centrally, and one which joins a lot of tables will mean that
>less SQL text has to be sent over the network to the server, thus reducing a
>possible bottleneck there.

One big advantage is that complex SQL in a view can be tuned for the most efficient access. Then developers or end-users can reference the view rather than re-inventing a potentially complex or poor-performing SQL statement.

I used to do this a lot - if I wrote some really complex SQL, I would create a view of it and encourage the developers to use these views in their reports. Saves a lot of hassle for the developers, and I knew the access path was the proper one.

Chris



Chris Hamilton, DBA
US Army Corps of Engineers
christopher.h.hamilton_at_usace.army.mil
http://www.serve.com/cowpb/chamilton.html Received on Tue Jun 02 1998 - 07:58:35 CDT

Original text of this message

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