Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XTN3R-0006IA-16 for pgsql-odbc@arkaria.postgresql.org; Mon, 15 Sep 2014 03:34:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XTN3Q-0007qJ-Br for pgsql-odbc@arkaria.postgresql.org; Mon, 15 Sep 2014 03:34:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XTN3P-0007qC-EM for pgsql-odbc@postgresql.org; Mon, 15 Sep 2014 03:34:15 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XTN3L-00044M-Vx for pgsql-odbc@postgresql.org; Mon, 15 Sep 2014 03:34:13 +0000 Received: from ayaki.localdomain (106-68-1-126.dyn.iinet.net.au [106.68.1.126]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0MBjiJ-1XapA11MSF-00Al4a; Mon, 15 Sep 2014 05:34:07 +0200 Message-ID: <54165E29.4020601@2ndquadrant.com> Date: Mon, 15 Sep 2014 11:34:01 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Heikki Linnakangas , vromanov@gmail.com, pgsql-odbc@postgresql.org Subject: Re: ODBC Driver performance comparison References: <54095AE6.2010508@vmware.com> In-Reply-To: <54095AE6.2010508@vmware.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:xhUk7Arpij0DzLu41hLrvEoGraZC6sB770lCKVQpBsg omWZyqRXXFLUWKFXTFrBqDg5/vNM4osgDbsKq40AJvtVEsEmUn ui8rZxHiak1tOtUjQM0nuJ0zaGn5XCnINKWcIgBbRgKjHmukav 99dyEZ8cuDYyBDdICFFi9kFitLVjcVNc51PXoPf9V/fwCpKjZl PPm8cO1oMdTlyeSVXDpp1S/Kza5wv8R5KFE0kLGw2B0NUxOUw3 5SxSw7d/3R8cY7Ygz4dCRF8mE1xKOVEajRWhrFwWf63t6RUXMN EVmkbv0N0pcQ3F9sVWvrLWqSrVEzgcJ0zFPdjNL49dpDvxKral QYmlLCIS5ODMhU4YXoxqrDHUi+nH7IJui0FR+H8Zt X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 09/05/2014 02:40 PM, Heikki Linnakangas wrote: > Are you measuring wall-clock time or CPU time? If it's CPU time, I'm > surprised that the I/O-related syscalls, poll(), send() and recv(), are > so high on the profile. If not, there isn't much you can do in the > client side to make them faster, as the time is simply spent waiting for > the server. There's still potentially one big thing that can be done: reduce round-trips. For example, the PgJDBC driver sends multi-statements to the server by writing a bunch of bind/parse/execute messsages, *then* waiting for a response and processing each response as it receives it. It can be worth looking at what's happening on the wire. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc