Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: Inserts and...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 16499 of 17418
Post > Topic >>

Re: Inserts and db file sequential reads

by "Jonathan Lewis" <jonathan@[EMAIL PROTECTED] > May 4, 2008 at 09:38 AM

"William Robertson" <williamr2019@[EMAIL PROTECTED]
> wrote in message 
news:6c24a3aa-971b-4aa0-96e7-a26862d8595a@[EMAIL PROTECTED]
> On May 2, 11:52 pm, oracleing...@[EMAIL PROTECTED]
 wrote:
>> INSERT /*+ append */ INTO OPERATION_DTLS
>> VALUES
>
> INSERT /*+ APPEND */ is only applicable to INSERT SELECT, not INSERT
> VALUES. Just as well, as each INSERT /*+ APPEND */ uses new blocks
> above the high water mark rather than looking for space in existing
> blocks, so unless each row uses exactly one block it could waste a
> load of space.



William,

I nearly made the same comment in my post, and then I decided
to hedge my bets a little because I wasn't sure that it would be
true in all cases.

The one that crossed my mind was the pl/sql array insert looking
something like:

    for all i in 1..m_ct
        insert into tableX values(m_array1(i), m_array2(i) ...);

It operates as a genuine array insert - which means that /*+ append */
may be relevant - but it does have a values() clause - which means that
/*+ append */ may be ignored.

Does your comment apply in this case as well as the single-row case ?
I didn't have time to run up a test case to check.

-- 
Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com

Author: Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html

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




 4 Posts in Topic:
Inserts and db file sequential reads
oracleingres@[EMAIL PROTE  2008-05-02 15:52:55 
Re: Inserts and db file sequential reads
"Jonathan Lewis"  2008-05-03 10:17:33 
Re: Inserts and db file sequential reads
William Robertson <wil  2008-05-04 01:11:47 
Re: Inserts and db file sequential reads
"Jonathan Lewis"  2008-05-04 09:38:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:53:10 CST 2008.