Re: postgreSQL query via JDBC in different OS taking different running time? - Mailing list pgsql-general

From John R Pierce
Subject Re: postgreSQL query via JDBC in different OS taking different running time?
Date
Msg-id 52537E14.4040401@hogranch.com
Whole thread Raw
In response to postgreSQL query via JDBC in different OS taking different running time?  ("Aftab Ahmed Chandio" <aftabac@siat.ac.cn>)
List pgsql-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



pgsql-general by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: postgreSQL query via JDBC in different OS taking different running time?
Next
From: David Johnston
Date:
Subject: Re: postgreSQL query via JDBC in different OS taking different running time?