From: Mike Nolan <nolan@gw.tssi.com>
To: tgl@sss.pgh.pa.us
Cc: scrappy@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Sustained inserts per sec ... ?
Date: Fri, 1 Apr 2005 16:36:47 -0600 (CST)
Message-ID: <200504012236.j31MamDD009302@gw.tssi.com> (raw)
In-Reply-To: <28575.1112389417@sss.pgh.pa.us>
> > 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: nolan@gw.tssi.com, tgl@sss.pgh.pa.us, scrappy@postgresql.org
Subject: Re: Sustained inserts per sec ... ?
In-Reply-To: <200504012236.j31MamDD009302@gw.tssi.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox