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: Question about Append hint in Insert

RE: Question about Append hint in Insert

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Fri, 18 Jun 2004 15:06:09 -0400
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CFECFD18@bosmail00.bos.il.pqe>


Harvinder,

1.) Should be no real disadvantage, other than an exclusive lock on the table. More on that later.
2.) Hint will only apply to table. Any index updates that result from table load will always log. If you want to, you could alter index ... unusable, then do the load, then alter index ... rebuild nologging; 3.) The problem here is that an INSERT /*+ APPEND */ takes an *exclusive* lock on the table. This prevents any other DML from running on the table till that transaction commits. The second process will wait on the exclusive mode TM enqueue that the first process is holding.

Hope that helps,

-Mark

Mark J. Bobak
Oracle DBA
ProQuest Company
Ann Arbor, MI
"Post Hoc Ergo Propter Hoc"

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Harvinder Singh Sent: Friday, June 18, 2004 2:43 PM
To: oracle-l_at_freelists.org
Subject: Question about Append hint in Insert

Hi,

We are testing insert performance in one of out tables and we are selecting from 1 table 1000 rows at a time and inserting in 2nd table. So we were getting tps of about 17000 for 1 million records. Then I added append hint to insert and tps went up to 23000. Now if I a try to insert from 2 clients to increase scalibility both insert at tps of 11000. so I have 2 questions:
1) What is the disadvantage of adding append hint during insert (we never delete or update this table in production) 2) Will the hint applicable to all the indexes or only table 3) Why with 2 clients using append result in less tps than normal 2 client inserts?

Thanks
--Harvinder

=3D20



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

-----------------------------------------------------------------
----------------------------------------------------------------
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 Fri Jun 18 2004 - 14:10:03 CDT

Original text of this message

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