Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF8Yw-0003Jl-Dl for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jun 2016 23:25:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bF8Yv-0003zX-KS for pgsql-odbc@arkaria.postgresql.org; Mon, 20 Jun 2016 23:25:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bF8Yu-0003zQ-Oa for pgsql-odbc@postgresql.org; Mon, 20 Jun 2016 23:25:01 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF8Yp-00021w-Vw for pgsql-odbc@postgresql.org; Mon, 20 Jun 2016 23:24:58 +0000 Received: from [192.168.1.3] (h216215.dynamic.ppp.asahi-net.or.jp [61.114.216.215]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id B0768640E; Tue, 21 Jun 2016 08:24:53 +0900 (JST) Subject: Re: Issue with Save and Release points To: daniel.machet@accenture.com References: <2469e362195c475898c777212b68b244@CO2PR4202MB0281.048d.mgd.msft.net> <0A3221C70F24FB45833433255569204D1F595BEB@G01JPEXMBYT05> <78e9da35a70c4ff1bfce5bde393934fc@SN4PR4207MB0382.048d.mgd.msft.net> <57647FB5.6020001@dream.email.ne.jp> <459e27de37af434388e31f95aca14b82@SN4PR4207MB0382.048d.mgd.msft.net> <5767F085.8050808@dream.email.ne.jp> <5ccb64c391ce49fc9ca27e7c0d23c156@SN4PR4207MB0382.048d.mgd.msft.net> Cc: tsunakawa.takay@jp.fujitsu.com, e.ratnakar.shetty@accenture.com, pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <57687B46.9000400@dream.email.ne.jp> Date: Tue, 21 Jun 2016 08:24:54 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <5ccb64c391ce49fc9ca27e7c0d23c156@SN4PR4207MB0382.048d.mgd.msft.net> Content-Type: multipart/alternative; boundary="------------080507000706080402070002" X-Pg-Spam-Score: -2.6 (--) 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 This is a multi-part message in MIME format. --------------080507000706080402070002 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Daniel, Unfortunately it needs an implementation change. If you hope, I would try to cache the result of SQLStatistics(). regards, Hiroshi Inoue On 2016/06/20 22:58, daniel.machet@accenture.com wrote: > > Hi Hiroshi, > > This is repeated about 2 times for each INSERT statement, how would I > go about changing the driver to cache the result? (I tried switching > on connection pooling for the Postgres Unicode driver with a 60 second > timeout but those queries didn’t reduce). > > Regards > > Dan > > ------------------------------------------------------------------------ > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete > the original. Any other use of the e-mail by you is prohibited. Where > allowed by local law, electronic communications with Accenture and its > affiliates, including e-mail and instant messaging (including > content), may be scanned by our systems for the purposes of > information security and assessment of internal compliance with > Accenture policy. > > Accenture means Accenture (UK) Limited (registered number 4757301), > registered in England and Wales with registered address at 30 > Fenchurch Street, London EC3M 3BD. > > *From:*Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp] > *Sent:* 20 June 2016 14:33 > *To:* Machet, Daniel > *Cc:* tsunakawa.takay@jp.fujitsu.com; Ratnakar Shetty, E. > ; pgsql-odbc@postgresql.org > *Subject:* Re: [ODBC] Issue with Save and Release points > > Hi Daniel, > > Looks like the log is a part of SQLStatistics call. > If SQLStatistics calls for a table are repeated, maybe the driver had > better cache the result. > > regards, > Hiroshi Inoue > > On 2016/06/20 17:38, daniel.machet@accenture.com > wrote: > > Hi Hiroshi, > > Please find attached the mylog from when the job runs (have only > switched on for 1 run and then switched off due to the time cost > from this) > > Regards > > Dan > > ------------------------------------------------------------------------ > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you > have received it in error, please notify the sender immediately > and delete the original. Any other use of the e-mail by you is > prohibited. Where allowed by local law, electronic communications > with Accenture and its affiliates, including e-mail and instant > messaging (including content), may be scanned by our systems for > the purposes of information security and assessment of internal > compliance with Accenture policy. > > Accenture means Accenture (UK) Limited (registered number > 4757301), registered in England and Wales with registered address > at 30 Fenchurch Street, London EC3M 3BD. > > > *From:*Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp] > *Sent:* 17 June 2016 23:55 > *To:* Machet, Daniel > > *Cc:* tsunakawa.takay@jp.fujitsu.com > ; Ratnakar Shetty, E. > > ; > pgsql-odbc@postgresql.org > *Subject:* Re: [ODBC] Issue with Save and Release points > > Hi Daniel, > > Doesn't your connection string contain 'Protocol=7.4-2' option? > If so, please change it to 'Protocol=7.4-1'. > > regards, > Hiroshi Inoue > > On 2016/06/17 23:28, daniel.machet@accenture.com > wrote: > > Thanks Takayuki, > > We’ve tried with Transaction but are still seeing save points > and release points in the postgres logs. Also on executing the > same query on localhost (from my laptop) am getting slow > performance (around 4 records per second). > > We don’t see same performance drawback on inserting directly > on the client > > Regards > > Daniel Machet > > ------------------------------------------------------------------------ > > This message is for the designated recipient only and may > contain privileged, proprietary, or otherwise private > information. If you have received it in error, please notify > the sender immediately and delete the original. Any other use > of the e-mail by you is prohibited. Where allowed by local > law, electronic communications with Accenture and its > affiliates, including e-mail and instant messaging (including > content), may be scanned by our systems for the purposes of > information security and assessment of internal compliance > with Accenture policy. > > Accenture means Accenture (UK) Limited (registered number > 4757301), registered in England and Wales with registered > address at 30 Fenchurch Street, London EC3M 3BD. > --------------080507000706080402070002 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Daniel,

Unfortunately it needs an implementation change.
If you hope, I would try to cache the result of SQLStatistics().

regards,
Hiroshi Inoue

On 2016/06/20 22:58, daniel.machet@accenture.com wrote:

Hi Hiroshi,

 

This is repeated about 2 times for each INSERT statement, how would I go about changing the driver to cache the result? (I tried switching on connection pooling for the Postgres Unicode driver with a 60 second timeout but those queries didn’t reduce).

 

Regards

Dan

 


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registered in England and Wales with registered address at 30 Fenchurch Street, London EC3M 3BD.

 

From: Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp]
Sent: 20 June 2016 14:33
To: Machet, Daniel <daniel.machet@accenture.com>
Cc: tsunakawa.takay@jp.fujitsu.com; Ratnakar Shetty, E. <e.ratnakar.shetty@accenture.com>; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Issue with Save and Release points

 

Hi Daniel,

Looks like the log is a part of SQLStatistics call.
If SQLStatistics calls for a table are repeated, maybe the driver had better cache the result.

regards,
Hiroshi Inoue

On 2016/06/20 17:38, daniel.machet@accenture.com wrote:

Hi Hiroshi,

 

Please find attached the mylog from when the job runs (have only switched on for 1 run and then switched off due to the time cost from this)

 

Regards

Dan

 


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registered in England and Wales with registered address at 30 Fenchurch Street, London EC3M 3BD.


 

From: Inoue, Hiroshi [mailto:h-inoue@dream.email.ne.jp]
Sent: 17 June 2016 23:55
To: Machet, Daniel <daniel.machet@accenture.com>
Cc: tsunakawa.takay@jp.fujitsu.com; Ratnakar Shetty, E. <e.ratnakar.shetty@accenture.com>; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Issue with Save and Release points

 

Hi Daniel,

Doesn't your connection string contain 'Protocol=7.4-2' option?
If so, please change it to 'Protocol=7.4-1'.

regards,
Hiroshi Inoue

On 2016/06/17 23:28, daniel.machet@accenture.com wrote:

Thanks Takayuki,

 

We’ve tried with Transaction but are still seeing save points and release points in the postgres logs. Also on executing the same query on localhost (from my laptop) am getting slow performance (around 4 records per second).

 

We don’t see same performance drawback on inserting directly on the client

 

Regards

Daniel Machet


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.

Accenture means Accenture (UK) Limited (registered number 4757301), registered in England and Wales with registered address at 30 Fenchurch Street, London EC3M 3BD.

--------------080507000706080402070002--