What t0mas said in this thread is entirely right. The only thing I would add is a question: what are you doing the benchmarking for? If it's just to see how fast it goes, more power to you. If you are trying to figure out how to speed up a particular operation, then you have a few other options if speed is the critical factor.

Oracle gives you a few ways to use "the direct path" to insert things into a database. Now, this is used for bulk operations more often than not, but as I said I'm not sure what your goal is. You can also create objects in "NO-LOGGING" mode, which basically has that object always use a form of the direct path. The direct path, when it is applied correctly, can give a huge speed benefit - and the nice thing is it really help when there are many indices and triggers to deal with too. The direct path is dangerous though because it skips the redo logs and therefore bypasses Oracle's own recovery mechanisms. I don't know what type of shop you're in, but using the direct path can also effect other business processes that may use the redo logs as a source of information such at replication and backup tools.

This may be information overkill, but, if it's not, cool. If you want to know more /msg me or try Oracle's Technet, which is a really decent free source of information.

"A man's maturity -- consists in having found again the seriousness one had as a child, at play." --Nietzsche

In reply to (jptxs) Re: Benchmarking Oracle - stored proc or insert by jptxs
in thread Benchmarking Oracle - stored proc or insert by agoth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.