From: Julien Patrouix <jpatroui@genoscope.cns.fr>
To: Bucky Jordan <bjordan@lumeta.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc driver performance TODO
Date: Sat, 28 Oct 2006 13:17:31 +0200
Message-ID: <45433C4B.6020300@genoscope.cns.fr> (raw)
In-Reply-To: <78ED28FACE63744386D68D8A9D1CF5D4209E10@MAIL.corp.lumeta.com>
References: <78ED28FACE63744386D68D8A9D1CF5D4209E10@MAIL.corp.lumeta.com>
In my opinion, improvements could be made in the encoding/decoding of
the protocole messages (Ie the PGStream class).
From what I have seen thanks to a profiler some methods are over
invoked, and the numeric encoding is not as efficient as it could be.
That numeric encoding/decoding is used very often, even for the
protocole purposes, not only for data encoding.
Furthermore, it would be interesting not to use the java BufferedStream
implementation, and use a specific one so as to directly manage and
access the buffer.
From the driver point of view, this is the core part to optimize since
everything starts or goes from/through this part (the protocole encoding).
I use a driver I have optimized, and submitted these obervations a
couple of time to the list, but I'm really sorry I can't contribute more
for a long time I'm afraid
Nevertheless, anyone that would look into these parts of the code could
make that optimisations again as they are quite simple to achieve.
Regards.
Bucky Jordan a écrit :
>My first vote would go to adding support for COPY. (Where would I find a
>design doc for this if one exists? I'm sort of curious how this will
>work..)
>
>My other is more of a question relating to parameterized statements and
>prepared statements, so I'm sending it in another post since I'm not
>sure if it qualifies as a TO-DO request.
>
>Thanks,
>
>Bucky
>
>
>
>
>
>>-----Original Message-----
>>From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-
>>owner@postgresql.org] On Behalf Of Simon Riggs
>>Sent: Friday, October 27, 2006 6:58 PM
>>To: pgsql-jdbc@postgresql.org
>>Subject: [JDBC] jdbc driver performance TODO
>>
>>I'm interested in updating the performance TODO list for the jdbc
>>driver. I want to refresh the TODO list with any new items people are
>>aware of, plus make sure each item has a link to an agreed design if
>>
>>
>one
>
>
>>exists.
>>
>>Forgive me for the observation, but the current list does seem to be a
>>little out of date:
>>- Add statement pooling to take advantage of server prepared
>>
>>
>statements.
>
>
>>- Allow scrollable ResultSets to not fetch all results in one batch.
>>- Allow refcursor ResultSets to not fetch all results in one batch.
>>- Allow binary data transfers for all datatypes not just bytea.
>>
>>Could I shake the tree for any new performance suggestions? Or maybe
>>
>>
>not
>
>
>>new exactly, but just not listed. Lots of detail please....
>>
>>--
>> Simon Riggs
>> EnterpriseDB http://www.enterprisedb.com
>>
>>
>>
>>---------------------------(end of
>>
>>
>broadcast)---------------------------
>
>
>>TIP 3: Have you checked our extensive FAQ?
>>
>> http://www.postgresql.org/docs/faq
>>
>>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: don't forget to increase your free space map settings
>
>
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-jdbc@postgresql.org
Cc: jpatroui@genoscope.cns.fr, bjordan@lumeta.com, simon@2ndquadrant.com
Subject: Re: jdbc driver performance TODO
In-Reply-To: <45433C4B.6020300@genoscope.cns.fr>
References: <78ED28FACE63744386D68D8A9D1CF5D4209E10@MAIL.corp.lumeta.com> <45433C4B.6020300@genoscope.cns.fr>
* 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