Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux