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: Is there any overhead using views

Re: Is there any overhead using views

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Thu, 09 Dec 1999 17:39:33 +0800
Message-ID: <384F78D5.5A9F@yahoo.com>


Hugh Pendry wrote:
>
> I have created a view which massively speeds up a query,
> I would like to know if there is any overhead using views
> (perhaps when the record is added)
>
> The query that is speeded up is, selecting a record from a table
> using many foreign keys. To get the values for the keys (integer)
> I look up against a text field, some of these lookup tables are 'large'
> 10000+ records. All fields do not allow nulls.
>
> I don't understand why the view is quicker than the query (all the
> necessary indexes are in place), unless there is some sort of
> overhead when a record is added, in the same way that an index
> incurs an overhead when adding records, in order to maintain the
> index.
>
> Basically I don't understand how views work and so I can't evaluate the
> pros and cons of using them.
>
> Can anyone give me an explanation or a pointer to some information
>
> thanks a lot
> hugh.

Views store just the text associated with them (not any data) thus there is no overhead when rows are added/removed etc from the table(s) in the view.

--



Connor McDonald
"These views mine, no-one elses etc etc" connor_mcdonald_at_yahoo.com

"Some days you're the pigeon, and some days you're the statue." Received on Thu Dec 09 1999 - 03:39:33 CST

Original text of this message

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