Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlBvk-000fcG-C2 for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2024 18:05:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rlBvi-00BEbf-UR for pgsql-general@arkaria.postgresql.org; Fri, 15 Mar 2024 18:05:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlBvg-00BEaq-Uu for pgsql-general@lists.postgresql.org; Fri, 15 Mar 2024 18:05:19 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rlBvc-004gRw-Pi for pgsql-general@lists.postgresql.org; Fri, 15 Mar 2024 18:05:16 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 85D7A320034E; Fri, 15 Mar 2024 14:05:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 15 Mar 2024 14:05:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1710525911; x=1710612311; bh=ojK+05rRQV ziAG0zaCT2aMkgJpF1+zQ1MSAhuBxjJqo=; b=jb3rwkEbNon8obs3FkbH07F27o gaouBPHTpbCX+sED3ov/JhS563QiSYzT9b5fILNPIjMJROtTXvuL/Ax0GbTlPK6w sRahV9KyqSEhQb3T2oVyLZ5ZAf47gH6ukW6jRVwvI3Gng6AsuMUNplSXoO25uMca ic1koMzLcW8SGgnzuQN14CewB9ciTzO7tQfU57BWfhYbQ01IlvgqJQqAR+VLtth1 3+bRvDwOwUI5qN7frOlhBGJGz6saRyDmcIWOwrHnrY1FKmNm7mjixEcz9pnQ1Zkv AHyq1wSc4rIkSUaaNQL9vqO+TJU/fZAunmNHCKIYJJslOxaTXA3AiAn+2XxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1710525911; x=1710612311; bh=ojK+05rRQVziAG0zaCT2aMkgJpF1 +zQ1MSAhuBxjJqo=; b=lp8l5Qu1QgU0/a+CcaE48WyXsdTcvZzI9tPcYxXRVkux fkuJjFYyEK4DOsCVJv6QRo6T+7/9Nn7dVKqy4ffdhYZ+lCvbWJk92pVSlA9mZkza 9GXMAMcQJ/pElJAfb4JX7rsp3kV38GmBX59e7+Hcs1W1btTg3O0txuk1dwLZZZ+H Rpo8MsCihBvV5gGK1Vh16mdoDjf5CAToeT7kUksFSViMsvdibSPBFvOXGl1mr0pO 7Wpa8C7B7A2sPE/RV8KqmEvk0xD9gcKFQgRGxhf00NJVTlWYPV4oEEkumcYFyQ/o LYf7cXJ6R3WNhUfxRznMwWIVTAIx1d5RjqnJGbkPdg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeelgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptgfkffggfgfuvfevfhfhjgesrgdtreertddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedukeejgfdtfeekvefhueekvefhheefveefkeelvddv ffeukeekueeiieffudejteenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Mar 2024 14:05:09 -0400 (EDT) Content-Type: multipart/alternative; boundary="------------0yUBh0e6TwcTLbRGhEcDsseN" Message-ID: <0268e2ac-25bb-4e2b-909a-b6ea72dba01d@aklaver.com> Date: Fri, 15 Mar 2024 11:05:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PostGres ODBC too slow Content-Language: en-US To: vedant patel Cc: pgsql-general@lists.postgresql.org References: <47c54070-cdc1-461c-9750-e9570a8ba2e4@aklaver.com> From: Adrian Klaver In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0yUBh0e6TwcTLbRGhEcDsseN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/15/24 10:58 AM, vedant patel wrote: > Thanks Adrian, > > > I have been to the articles but it didn't help. Many of them have > mentioned this type of issues but not the solution. That is why you should ask over on the ODBC list, that is where the folks who develop and use the driver hang out. When you do you will need to provide more information, at a minimum: 1) Postgres version. 2) ODBC version. 3) Example code. 4) The benchmark results. > > And my main concern is if python library is able to perform fast > operation why ODBC is too much slow. And I have to use ODBC for my > application which is in power builder. > > Thanks, > > On Fri, 15 Mar, 2024, 11:09 pm Adrian Klaver, > wrote: > > > On 3/15/24 3:40 AM, vedant patel wrote: >> Hello There, >> >> Recently, we've encountered some performance issues with the ODBC >> driver provided by Postgres. Upon investigation, we noticed that >> switching from the UNICODE to ANSI driver resulted in performance >> improvements for some queries, albeit at the expense of others. >> >> To delve deeper into this matter, I conducted tests using a >> Python script with the psycopg2 library, and the results were >> significantly better. However, to address this issue >> comprehensively, I've explored alternative ODBC drivers available >> in the market. While some minor improvements were observed in a >> few queries with a different driver, the overall performance >> remains a concern. >> >> Given your extensive experience in this area, I would greatly >> appreciate your insights and recommendations on which ODBC driver >> would be most suitable for our use case. Any advice or >> suggestions you could offer would be immensely helpful in >> resolving this performance issue. > > > This will probably get a better answer quicker over at the ODBC list: > > > https://www.postgresql.org/list/pgsql-odbc/ > > >> >> Let me know in case of any questions or concerns. >> >> Thanks, > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com --------------0yUBh0e6TwcTLbRGhEcDsseN Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


On 3/15/24 10:58 AM, vedant patel wrote:
Thanks Adrian,


I have been to the articles but it didn't help. Many of them have mentioned this type of issues but not the solution.


That is why you should ask over on the ODBC list, that is where the folks who develop and use the driver hang out.

When you do you will need to provide more information, at a minimum:

1) Postgres version.

2) ODBC version.

3) Example code.

4) The benchmark results.


And my main concern is if python library is able to perform fast operation why ODBC is too much slow. And I have to use ODBC for my application which is in power builder.

Thanks,

On Fri, 15 Mar, 2024, 11:09 pm Adrian Klaver, <adrian.klaver@aklaver.com> wrote:


On 3/15/24 3:40 AM, vedant patel wrote:
Hello There,

Recently, we've encountered some performance issues with the ODBC driver provided by Postgres. Upon investigation, we noticed that switching from the UNICODE to ANSI driver resulted in performance improvements for some queries, albeit at the expense of others.

To delve deeper into this matter, I conducted tests using a Python script with the psycopg2 library, and the results were significantly better. However, to address this issue comprehensively, I've explored alternative ODBC drivers available in the market. While some minor improvements were observed in a few queries with a different driver, the overall performance remains a concern.

Given your extensive experience in this area, I would greatly appreciate your insights and recommendations on which ODBC driver would be most suitable for our use case. Any advice or suggestions you could offer would be immensely helpful in resolving this performance issue.


This will probably get a better answer quicker over at the ODBC list:


https://www.postgresql.org/list/pgsql-odbc/



Let me know in case of any questions or concerns. 

Thanks,
-- 
Adrian Klaver
adrian.klaver@aklaver.com
-- 
Adrian Klaver
adrian.klaver@aklaver.com
--------------0yUBh0e6TwcTLbRGhEcDsseN--