Re: [INTERFACES] Performance

Поиск
Список
Период
Сортировка
От Maarten Boekhold
Тема Re: [INTERFACES] Performance
Дата
Msg-id 3771E013.E64518BA@tibco.com
обсуждение исходный текст
Ответ на Performance  (Steven Bradley <sbradley@llnl.gov>)
Список pgsql-interfaces
> second.  I then wrapped the whole series of inserts in a BEGIN/END
> block.  This increased the speed to about 1000 inserts per second.
> Yup.  A thousand.  That's 40 times the speed.  Pretty cool.  :-)

How did you measure this? Did you do (pseudo code):

start_time = now
SQL BEGIN
SQL INSERT's..
...
SQL END
end_time = now
print number_inserts / (end_time - start_time)

or
SQL BEGIN
start_time = now
SQL INSERT's
....
end_time = now
SQL END
print number_inserts / (end_time - start_time)

This makes a difference, since a lot of processing is done on commit time. The second
variant might thus be misleading.

Maarten

-- 

Maarten Boekhold, boekhold@tibco.com
TIBCO Finance Technology Inc.
The Atrium
Strawinskylaan 3051
1077 ZX Amsterdam, The Netherlands
tel: +31 20 3012158, fax: +31 20 3012358
http://www.tibco.com


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

Предыдущее
От: Peter Mount
Дата:
Сообщение: RE: [INTERFACES] RE: PG6.5 + JDBC + Linux + Kaffe
Следующее
От: Tom Ivar Helbekkmo
Дата:
Сообщение: Re: [INTERFACES] Performance