pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrick Donlin <pdonlin@oaisd.org>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Identical query slower on 8.4 vs 8.3
Date: Thu, 15 Jul 2010 14:48:04 -0400 (EDT)
Message-ID: <1045407518.13317091279219684833.JavaMail.root@mm-mailstore02.merit.edu> (raw)
In-Reply-To: <AANLkTinBo6FyQvnDr9hfFN1T2WfpxCQf7uQKv0ajIvDq@mail.gmail.com>

Thanks everyone for the input so far, Merlin's comment about the network gave me one of those duh moments since I have been running these queries remotely using pgadmin. I will experiment with this more tomorrow/Monday along with the other suggestions that have been posted to hopefully narrow it down. Running the query from my webserver yielded much better times, but from a quick look it seems my 8.4 server is still a bit slower. I will share more details as I dig into it more tomorrow or Monday. 

-Patrick 

----- Original Message ----- 
From: "Merlin Moncure" <mmoncure@gmail.com> 
To: "Patrick Donlin" <pdonlin@oaisd.org> 
Cc: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>, pgsql-performance@postgresql.org 
Sent: Thursday, July 15, 2010 12:04:13 PM GMT -05:00 US/Canada Eastern 
Subject: Re: [PERFORM] Identical query slower on 8.4 vs 8.3 

your plans are identical as is the runtime basically. this means you 
might want to consider the following possibilities: 
*) operator error :-) 
*) cache effects 
*) environmental factors on the server at the time 
*) network/client issues 

I say network issues because if your explain analyze (which actually 
does run the entire query) is significantly faster than the full 
query, then we have to consider that the formatting and transfer of 
the data back to the client (even if it's on the same box) becomes 
suspicious. If you've eliminated other possibilities, try running 
other big, trivially planned, mucho result returning queries (like 
select * from table) on both servers and comparing times. 

merlin 

view thread (13+ messages)  latest in thread

Message-ID: <1045407518.13317091279219684833.JavaMail.root@mm-mailstore02.merit.edu>
Permalink:  ../1045407518.13317091279219684833.JavaMail.root@mm-mailstore02.merit.edu/
Also on:    postgresql.org/message-id/1045407518.13317091279219684833.JavaMail.root@mm-mailstore02.merit.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pdonlin@oaisd.org, mmoncure@gmail.com
  Subject: Re: Identical query slower on 8.4 vs 8.3
  In-Reply-To: <1045407518.13317091279219684833.JavaMail.root@mm-mailstore02.merit.edu>

* 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