Re: Sustained inserts per sec ... ?

From: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: scrappy(at)postgresql(dot)org (Marc G(dot) Fournier), pgsql-performance(at)postgresql(dot)org
Subject: Re: Sustained inserts per sec ... ?
Date: 2005-04-01 22:36:47
Message-ID: 200504012236.j31MamDD009302@gw.tssi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> > Well, I just did an insert of 27,500 records with 9 fields, averaging
> > around 118 bytes per record, each insert statement coming from a separate
> > SQL statement fed to psql, and it took a bit over 4 minutes, or about
> > 106 inserts per second.
>
> Is that with a separate transaction for each insert command? I can get
> significantly higher rates on my devel machine if the inserts are
> bundled into transactions of reasonable length.

That's with autocommit on. If I do it as a single transaction block,
it takes about 6.5 seconds, which is about 4200 transactions/second.
--
Mike Nolan

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Fuhr 2005-04-01 23:24:01 Re: date - range
Previous Message Tom Lane 2005-04-01 22:03:53 Re: Sustained inserts per sec ... ?