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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: performance when inserting into child tables

Re: performance when inserting into child tables

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 21 Apr 2004 19:49:18 +0100
Message-ID: <01e201c427d1$5b0ca520$7102a8c0@Primary>

It's released (almost) immediately after it has been taken, but the request need not be granted immediately.

The request is Share (4) or Sub Share Exclusive (5), so it has to wait for all current Row Exclusive (3 - the normal lock for inserts, updates and deletes) to be released. Moreover, whilst the request is pending, every other session wishing to do a 'normal' I/U/D will queue behind it.

It does NOT solve the problem of parent/child tables with missing indexes on the child - it can reduce the impact on low-activity systems.

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

April 2004 Iceland http://www.index.is/oracleday.php June 2004 UK - Optimising Oracle Seminar July 2004 USA West Coast, Optimising Oracle Seminar August 2004 Charlotte NC, Optimising Oracle Seminar September 2004 USA East Coast, Optimising Oracle Seminar September2004 UK - Optimising Oracle Seminar

Jared,

you said:

"The lack of indexes for the FK's will cause a share lock to be taken out on the child table when ever the parent is deleted or updated."

The most recent Oracle class I took said that in 9i, this lock on the child table is taken and released immediately. Supposedly to speed the process up a bit.

Tom Mercadante
Oracle Certified Professional



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Wed Apr 21 2004 - 13:47:34 CDT

Original text of this message

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