pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Schmidt, Peter <peter.schmidt@prismedia.com>
To: 'Bruce Momjian' <pgman@candle.pha.pa.us>
To: Schmidt, Peter <peter.schmidt@prismedia.com>
Cc: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: 'Michael Ansley' <Michael.Ansley@intec-telecom-systems.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: RE: v7.1b4 bad performance
Date: Fri, 16 Feb 2001 14:23:37 -0800
Message-ID: <F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.com> (raw)



> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
> Sent: Friday, February 16, 2001 10:59 AM
> To: Schmidt, Peter
> Cc: 'Tom Lane'; 'Michael Ansley'; 'pgsql-admin@postgresql.org'
> Subject: Re: [ADMIN] v7.1b4 bad performance
> 
> 
> > > "Schmidt, Peter" <peter.schmidt@prismedia.com> writes:
> > > > However, what I'm interested in is the comparison between 
> > > 7.0x and 7.1x.
> > > > Shouldn't the 7.1b4 database be faster? Have you (or anyone 
> > > else) done this
> > > > comparison?
> > > 
> > > 7.1 is considerably faster if you compare performance without -F.
> > > If you are comparing performance with -F, I'm not sure 
> exactly how it
> > > stacks up.
> > > 
> > > 			regards, tom lane
> > > 
> > 
> > Here are some of the results of my tests which are very 
> consistent.  I
> > dropped and recreated postgres db before each test so the 
> only user tables
> > were the pgbench tables.
> > 
> > 7.1b4(no -F)	49 tps
> > 7.03 (no -F)	64 tps
> > 7.03 (with -F)	121 tps
> > 
> > The test machine is a Dell Dimension 800mz w/128 RAM and it 
> is dedicated to
> > this testing. Pgbench is run on the same machine. Any ideas 
> why my results
> > differ? I will continue testing and appreciate all comments. 
> > Peter
> 
> This is very strange.  Is there any specific query that is causing the
> problem?  Does EXPLAIN show the same output on both versions?
> 


"pgbench" doesn't execute any complex sql...

Explain shows exactly the same output for both versions(7.03 & 7.1b4):

update accounts set abalance = abalance + 1 where aid = 1
Index Scan using accounts_pkey on accounts  (cost=0.00..3.81 rows=1
width=30)

select abalance from accounts where aid = 1
Index Scan using accounts_pkey on accounts  (cost=0.00..3.81 rows=1 width=4)

update tellers set tbalance = tbalance + 1 where tid = 1
Seq Scan on tellers  (cost=0.00..1.12 rows=1 width=30)

update branches set bbalance = bbalance + 1 where bid = 1
Seq Scan on branches  (cost=0.00..1.01 rows=1 width=26)

insert into history(tid,bid,aid,delta,time) values(1,1,1,1,'now')
Result  (cost=0.00..0.00 rows=0 width=0)

Peter
 

view thread (63+ messages)  latest in thread

Message-ID: <F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.com>
Permalink:  ../F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.com/
Also on:    postgresql.org/message-id/F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter.schmidt@prismedia.com, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, Michael.Ansley@intec-telecom-systems.com
  Subject: Re: v7.1b4 bad performance
  In-Reply-To: <F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.com>
  References: <F1DC8388AD52D411B83B00D0B774D6EB1928DF@winmail.prismedia.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