Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 507F8638330 for ; Tue, 20 Jul 2010 16:20:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 73159-04 for ; Tue, 20 Jul 2010 19:20:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id CC31A6382E7 for ; Tue, 20 Jul 2010 16:20:18 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 6B7A728428; Tue, 20 Jul 2010 15:20:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=sk+8+vTqaV0vMTQ0ymlO281Jmy4=; b=I3UkEr PiHdKBE5pkJVvLIuPcJ1S+fvvmMek1hEc/HM8HJMP4kZlvPT+w00SPwoiyc5U3yA 8tbRQBUm/3RYZWg4U9X9+JOnwqqtz512kEknDGzOFM+Ab2cdrelk5tY1H64uF7aE PQOgrJ9ErPiydeKjHKVKq3r7Q+PkQ99AX8Wn4= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 54AFB28408; Tue, 20 Jul 2010 15:20:17 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 25C74A200; Tue, 20 Jul 2010 15:20:17 -0400 (EDT) Date: Tue, 20 Jul 2010 15:20:16 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: =?ISO-8859-2?Q?Rados=B3aw_Smogura?= cc: pgsql-jdbc@postgresql.org Subject: Re: Binary protocol support for JDBC In-Reply-To: <201007202114.01608.rsmogura@softperience.eu> Message-ID: References: <201007202114.01608.rsmogura@softperience.eu> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/67 X-Sequence-Number: 20732 On Tue, 20 Jul 2010, Rados?aw Smogura wrote: > I partially, and for "test", implemented retrieval data in binary mode > (instead of text mode) for some Jdbc2 types, because I see great performance > boost (25% - 50%) on implemented types I think about including this work to > main JDBC branch. Are you aware of the existing work in this area? http://wiki.postgresql.org/wiki/JDBC-BinaryTransfer > This should be done without problem, because I added binary parameter to > Connection and Datasources, so user can decide to use binary mode > retrieve or current text mode (default). Currently I implemented > retrieve of short, int, long, date and BigDecimal. Other simple and > basic types, used in typically application I will implement shortly. > One of the difficulties in the existing patch is knowing when to request binary transfer and when to request text transfer because for the first execution the datatypes are not known. How have you addressed this problem? Kris Jurka