3300 insertions/second comes to 30 seconds for 100K. I find 30 fairly large for "several". But is this number for 3300 separate queries, or a single query with 3300 rows? Of course, there are many other factors to consider, not of them mentioned in the original post, nor in any way perl related:
  1. How many indices are they? What kind of indices? Do they allow for new rows written at the end of the table, or must the table be rewritten?
  2. Are there any constraints? Foreign keys? Unique indices? Triggers? Auditting?
  3. How many rows are there already?
  4. How many other processes are using the table while you're doing inserts?
  5. What's the hardware the database is running on?
  6. How much memory does said hardware have?
  7. How "hot" is the table?
  8. Is the table being replicated?
  9. What's the physical layout of where the data is written to? What's the physical layout of where your logs are written to?

In reply to Re^3: Speeding up Postgres INSERTs by JavaFan
in thread Speeding up Postgres INSERTs by punkish

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.