Re: postgreSQL query via JDBC in different OS taking different running time?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: postgreSQL query via JDBC in different OS taking different running time?
Date: 2013-10-08 03:37:56
Message-ID: 52537E14.4040401@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2013-10-08 03:44:13 Re: postgreSQL query via JDBC in different OS taking different running time?
Previous Message Kevin Grittner 2013-10-08 03:35:30 Re: postgreSQL query via JDBC in different OS taking different running time?

Browse pgsql-performance by date

  From Date Subject
Next Message David Johnston 2013-10-08 03:44:13 Re: postgreSQL query via JDBC in different OS taking different running time?
Previous Message Kevin Grittner 2013-10-08 03:35:30 Re: postgreSQL query via JDBC in different OS taking different running time?