pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Subject: Re: postgreSQL query via JDBC in different OS taking different running time?
Date: Mon, 07 Oct 2013 20:37:56 -0700
Message-ID: <52537E14.4040401@hogranch.com> (raw)
In-Reply-To: <1bf97f3.3e260.14195c01fd6.Coremail.aftabac@siat.ac.cn>
References: <1bf97f3.3e260.14195c01fd6.Coremail.aftabac@siat.ac.cn>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On 10/7/2013 6:48 PM, Aftab Ahmed Chandio wrote:
> I found 85 ms time unit in DOS (win7) (laptop 4cores). both Java and 
> PostgreSQL installed and invoked on the same machine, respectively.
> On the other hand, I use same process (separate installation) on linux 
> on 8 cores physical machine with 2times greater then laptop.
> I found 150 ms. (which is a question for me because the time in Linux 
> environment should give me half of the time taking on laptop)

a single connection session will only use a single core at a time.

depending on the nature of this query, it may have been CPU or Disk IO 
bound, without knowing the query, the database schema, and the hardware 
specification of both systems, its impossible to guess.

first thing to do is run..

     explain analyze  ...your query here...;

on both platforms, and verify they are doing the same thing.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (6+ messages)  latest in thread

Message-ID: <52537E14.4040401@hogranch.com>
Permalink:  ../52537E14.4040401@hogranch.com/
Also on:    postgresql.org/message-id/52537E14.4040401@hogranch.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pierce@hogranch.com, pgsql-general@postgresql.org
  Subject: Re: postgreSQL query via JDBC in different OS taking different running time?
  In-Reply-To: <52537E14.4040401@hogranch.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