From: Adrian Klaver <adrian.klaver@aklaver.com>
To: vedant patel <vedantpatel297@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PostGres ODBC too slow
Date: Fri, 15 Mar 2024 11:05:05 -0700
Message-ID: <0268e2ac-25bb-4e2b-909a-b6ea72dba01d@aklaver.com> (raw)
In-Reply-To: <CAL4ovZp-q7H=2Pdg8sAWQnNmgdABRNnj_2teZLfTq6OoAiOMCQ@mail.gmail.com>
References: <CAL4ovZqaPAKQNRe_2qfD-w3Opp04od_QwOrvSSytsyDHRxjz8A@mail.gmail.com>
<47c54070-cdc1-461c-9750-e9570a8ba2e4@aklaver.com>
<CAL4ovZp-q7H=2Pdg8sAWQnNmgdABRNnj_2teZLfTq6OoAiOMCQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, vedantpatel297@gmail.com
Subject: Re: PostGres ODBC too slow
In-Reply-To: <0268e2ac-25bb-4e2b-909a-b6ea72dba01d@aklaver.com>
References: <CAL4ovZqaPAKQNRe_2qfD-w3Opp04od_QwOrvSSytsyDHRxjz8A@mail.gmail.com> <47c54070-cdc1-461c-9750-e9570a8ba2e4@aklaver.com> <CAL4ovZp-q7H=2Pdg8sAWQnNmgdABRNnj_2teZLfTq6OoAiOMCQ@mail.gmail.com> <0268e2ac-25bb-4e2b-909a-b6ea72dba01d@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox