Re: Sustained inserts per sec ... ?

Поиск
Список
Период
Сортировка
От Mike Nolan
Тема Re: Sustained inserts per sec ... ?
Дата
Msg-id 200504012236.j31MamDD009302@gw.tssi.com
обсуждение исходный текст
Ответ на Re: Sustained inserts per sec ... ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sustained inserts per sec ... ?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: date - range