Re: [INTERFACES] Performance

From: Maarten Boekhold <boekhold(at)tibco(dot)com>
To: Tom Ivar Helbekkmo <tih(at)Norway(dot)EU(dot)net>
Cc: Steven Bradley <sbradley(at)llnl(dot)gov>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Performance
Date: 1999-06-24 07:36:51
Message-ID: 3771E013.E64518BA@tibco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)tibco(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 1999-06-24 07:43:04 RE: [INTERFACES] RE: PG6.5 + JDBC + Linux + Kaffe
Previous Message Michael Meskes 1999-06-24 06:52:07 Re: [INTERFACES] ECPG fetch broken after upgrade to 6.5