Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTO7Y-0005EA-MF for pgsql-general@arkaria.postgresql.org; Tue, 08 Oct 2013 03:38:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VTO7Y-0004kn-1G for pgsql-general@arkaria.postgresql.org; Tue, 08 Oct 2013 03:38:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTO7V-0004gc-CD for pgsql-general@postgresql.org; Tue, 08 Oct 2013 03:38:01 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTO7S-0005fy-Dz for pgsql-general@postgresql.org; Tue, 08 Oct 2013 03:38:01 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r983bml29578 for ; Mon, 7 Oct 2013 20:37:48 -0700 Message-ID: <52537E14.4040401@hogranch.com> Date: Mon, 07 Oct 2013 20:37:56 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: postgreSQL query via JDBC in different OS taking different running time? References: <1bf97f3.3e260.14195c01fd6.Coremail.aftabac@siat.ac.cn> In-Reply-To: <1bf97f3.3e260.14195c01fd6.Coremail.aftabac@siat.ac.cn> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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