Re: [HACKERS] Postgres Speed or lack thereof

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] Postgres Speed or lack thereof
Дата
Msg-id 36A3EE9D.78796774@krs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] Postgres Speed or lack thereof  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Postgres Speed or lack thereof  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> 
> Vadim Mikheev <vadim@krs.ru> writes:
> > For the table with single int4 column & 2000 INSERTs I have:
> 
> > BEGIN/END:            3.5sec          ~600insert/sec
> > Without:            151sec            ~13insert/sec
> 
> > (IDE disk!)
> 
> > I guess that you don't use -F flag..?
> 
> *Do* use -F, you meant of course.  You're right, I do.  With an

Actually no -:)

> fsync after every transaction, I'm sure my test would've been much
> slower.

Just use BEGIN/END to run all queries in single transaction -:)

> However, with a UPS and an OS that only crashes about once every
> other year, I feel pretty secure using -F ...

However, it's easy to crash Postgres itself and lose
committed transactions -:(

Vadim


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

Предыдущее
От: Taral
Дата:
Сообщение: Prepared statements (was: Postgres Speed or lack thereof)
Следующее
От: Puchong
Дата:
Сообщение: (no subject)